mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-18 17:15:40 -04:00
Move the data directory to Android/data/net.kdt.pojavlaunch/files to make it accessible to file explorers
This commit is contained in:
parent
80b5c55a64
commit
5fe4711d33
@ -80,7 +80,7 @@ public final class Tools {
|
|||||||
DIR_DATA = ctx.getFilesDir().getParent();
|
DIR_DATA = ctx.getFilesDir().getParent();
|
||||||
MULTIRT_HOME = DIR_DATA+"/runtimes";
|
MULTIRT_HOME = DIR_DATA+"/runtimes";
|
||||||
if(Build.VERSION.SDK_INT >= 29) {
|
if(Build.VERSION.SDK_INT >= 29) {
|
||||||
DIR_GAME_HOME = ctx.getFilesDir().getAbsolutePath();
|
DIR_GAME_HOME = ctx.getExternalFilesDir(null).getAbsolutePath();
|
||||||
}else{
|
}else{
|
||||||
DIR_GAME_HOME = new File(Environment.getExternalStorageDirectory(),"games/PojavLauncher").getAbsolutePath();
|
DIR_GAME_HOME = new File(Environment.getExternalStorageDirectory(),"games/PojavLauncher").getAbsolutePath();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user