mirror of
https://github.com/AngelAuraMC/Amethyst-Android.git
synced 2025-09-17 08:35:37 -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);
|
mkdirs(Tools.DIR_ACCOUNT_NEW);
|
||||||
PojavMigrator.migrateAccountData(this);
|
PojavMigrator.migrateAccountData(this);
|
||||||
|
|
||||||
|
mkdirs(Tools.DIR_GAME_HOME);
|
||||||
if (!PojavMigrator.migrateGameDir()) {
|
if (!PojavMigrator.migrateGameDir()) {
|
||||||
mkdirs(Tools.DIR_GAME_NEW);
|
mkdirs(Tools.DIR_GAME_NEW);
|
||||||
mkdirs(Tools.DIR_GAME_NEW + "/config");
|
mkdirs(Tools.DIR_GAME_NEW + "/config");
|
||||||
|
@ -61,8 +61,7 @@ public class PojavMigrator
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void command(String cmd) throws IOException, InterruptedException {
|
private static void command(String cmd) throws IOException, InterruptedException {
|
||||||
Process p = Runtime.getRuntime().exec(
|
Process p = Runtime.getRuntime().exec(cmd);
|
||||||
new String[]{cmd});
|
|
||||||
int exitCode = p.waitFor();
|
int exitCode = p.waitFor();
|
||||||
if (exitCode != 0) {
|
if (exitCode != 0) {
|
||||||
throw new IOException("Exit code " + exitCode +
|
throw new IOException("Exit code " + exitCode +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user