Android: Use save on exit option as default for resume

This commit is contained in:
Connor McLaughlin 2021-02-07 03:02:24 +10:00
parent 6ad2b72c2e
commit 1a63edec27

View file

@ -204,7 +204,8 @@ public class EmulationActivity extends AppCompatActivity implements SurfaceHolde
} }
final String bootPath = getIntent().getStringExtra("bootPath"); final String bootPath = getIntent().getStringExtra("bootPath");
final boolean resumeState = getIntent().getBooleanExtra("resumeState", false); final boolean saveStateOnExit = getBooleanSetting("Main/SaveStateOnExit", true);
final boolean resumeState = getIntent().getBooleanExtra("resumeState", saveStateOnExit);
final String bootSaveStatePath = getIntent().getStringExtra("saveStatePath"); final String bootSaveStatePath = getIntent().getStringExtra("saveStatePath");
mEmulationThread = EmulationThread.create(this, bootPath, resumeState, bootSaveStatePath); mEmulationThread = EmulationThread.create(this, bootPath, resumeState, bootSaveStatePath);