From 25bff2197a2396cb4df33ffb6a127a643477c06d Mon Sep 17 00:00:00 2001 From: rafal1137 Date: Thu, 14 May 2020 20:25:27 +0200 Subject: [PATCH] java: path to cached file was wrong --- app/src/main/java/org/etlegacy/app/ETLMain.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/etlegacy/app/ETLMain.java b/app/src/main/java/org/etlegacy/app/ETLMain.java index 4fb17c8..61b7446 100644 --- a/app/src/main/java/org/etlegacy/app/ETLMain.java +++ b/app/src/main/java/org/etlegacy/app/ETLMain.java @@ -30,7 +30,7 @@ public class ETLMain extends SDLActivity { public void onFinish() { super.onFinish(); try { - Files.move(getApplication().getCacheDir().getAbsoluteFile(), new File(getExternalFilesDir(null), "pak2.pk3")); + Files.move(file.getAbsoluteFile(), new File(getExternalFilesDir(null), "pak2.pk3")); } catch (IOException e) { e.printStackTrace(); }