Bug fix: Pojav root folder was in the root storage folder

This commit is contained in:
artdeell
2021-08-20 13:00:46 +03:00
parent 45ecd61f64
commit 8fc714c2d2

View File

@@ -82,7 +82,7 @@ public final class Tools {
if(Build.VERSION.SDK_INT >= 29) {
DIR_GAME_HOME = ctx.getFilesDir().getAbsolutePath();
}else{
DIR_GAME_HOME = Environment.getExternalStorageDirectory().getAbsolutePath();
DIR_GAME_HOME = new File(Environment.getExternalStorageDirectory(),"games/PojavLauncher").getAbsolutePath();
}
DIR_GAME_NEW = DIR_GAME_HOME + "/.minecraft";
DIR_HOME_VERSION = DIR_GAME_NEW + "/versions";