[Game dir migration] Bug fix

This commit is contained in:
khanhduytran0 2020-12-18 17:22:37 +07:00
parent 0ee04a66cd
commit d950ba5332
2 changed files with 2 additions and 2 deletions

View File

@ -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");

View File

@ -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 +