mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 04:38:49 +00:00
Android: fix crash on rotate
This commit is contained in:
parent
22c63433a2
commit
cd02a16a07
1 changed files with 3 additions and 2 deletions
|
@ -217,8 +217,6 @@ public final class EmulationActivity extends AppCompatActivity
|
||||||
mPlatform = gameToEmulate.getIntExtra(EXTRA_PLATFORM, 0);
|
mPlatform = gameToEmulate.getIntExtra(EXTRA_PLATFORM, 0);
|
||||||
mScreenPath = gameToEmulate.getStringExtra(EXTRA_SCREEN_PATH);
|
mScreenPath = gameToEmulate.getStringExtra(EXTRA_SCREEN_PATH);
|
||||||
mPosition = gameToEmulate.getIntExtra(EXTRA_GRID_POSITION, -1);
|
mPosition = gameToEmulate.getIntExtra(EXTRA_GRID_POSITION, -1);
|
||||||
mSettings = new Settings();
|
|
||||||
mSettings.loadSettings(null);
|
|
||||||
activityRecreated = false;
|
activityRecreated = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -227,6 +225,9 @@ public final class EmulationActivity extends AppCompatActivity
|
||||||
restoreState(savedInstanceState);
|
restoreState(savedInstanceState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mSettings = new Settings();
|
||||||
|
mSettings.loadSettings(null);
|
||||||
|
|
||||||
// TODO: The accurate way to find out which console we're emulating is to
|
// TODO: The accurate way to find out which console we're emulating is to
|
||||||
// first launch emulation and then ask the core which console we're emulating
|
// first launch emulation and then ask the core which console we're emulating
|
||||||
sIsGameCubeGame = Platform.fromNativeInt(mPlatform) == Platform.GAMECUBE;
|
sIsGameCubeGame = Platform.fromNativeInt(mPlatform) == Platform.GAMECUBE;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue