mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-16 08:05:34 -04:00
[Game dir migration] Bug fix
This commit is contained in:
parent
0ee04a66cd
commit
d950ba5332
@ -301,6 +301,7 @@ public class PojavLoginActivity extends BaseActivity
|
||||
mkdirs(Tools.DIR_ACCOUNT_NEW);
|
||||
PojavMigrator.migrateAccountData(this);
|
||||
|
||||
mkdirs(Tools.DIR_GAME_HOME);
|
||||
if (!PojavMigrator.migrateGameDir()) {
|
||||
mkdirs(Tools.DIR_GAME_NEW);
|
||||
mkdirs(Tools.DIR_GAME_NEW + "/config");
|
||||
|
@ -61,8 +61,7 @@ public class PojavMigrator
|
||||
}
|
||||
|
||||
private static void command(String cmd) throws IOException, InterruptedException {
|
||||
Process p = Runtime.getRuntime().exec(
|
||||
new String[]{cmd});
|
||||
Process p = Runtime.getRuntime().exec(cmd);
|
||||
int exitCode = p.waitFor();
|
||||
if (exitCode != 0) {
|
||||
throw new IOException("Exit code " + exitCode +
|
||||
|
Loading…
x
Reference in New Issue
Block a user