From 1a63edec270734e3686df558fc859f6f5cc64c81 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 7 Feb 2021 03:02:24 +1000 Subject: [PATCH] Android: Use save on exit option as default for resume --- .../java/com/github/stenzek/duckstation/EmulationActivity.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/android/app/src/main/java/com/github/stenzek/duckstation/EmulationActivity.java b/android/app/src/main/java/com/github/stenzek/duckstation/EmulationActivity.java index 3278e30ba..833d6d1b5 100644 --- a/android/app/src/main/java/com/github/stenzek/duckstation/EmulationActivity.java +++ b/android/app/src/main/java/com/github/stenzek/duckstation/EmulationActivity.java @@ -204,7 +204,8 @@ public class EmulationActivity extends AppCompatActivity implements SurfaceHolde } 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"); mEmulationThread = EmulationThread.create(this, bootPath, resumeState, bootSaveStatePath);