Move the data directory to Android/data/net.kdt.pojavlaunch/files to make it accessible to file explorers

This commit is contained in:
artdeell 2021-08-20 17:37:08 +03:00
parent 80b5c55a64
commit 5fe4711d33

View File

@ -80,7 +80,7 @@ public final class Tools {
DIR_DATA = ctx.getFilesDir().getParent();
MULTIRT_HOME = DIR_DATA+"/runtimes";
if(Build.VERSION.SDK_INT >= 29) {
DIR_GAME_HOME = ctx.getFilesDir().getAbsolutePath();
DIR_GAME_HOME = ctx.getExternalFilesDir(null).getAbsolutePath();
}else{
DIR_GAME_HOME = new File(Environment.getExternalStorageDirectory(),"games/PojavLauncher").getAbsolutePath();
}