Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

android: Always use custom settings when launched from intent

t895ac73c85c7b15
diff --git a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
index c40f5f41a1..d7b38f62d0 100644
--- a/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
+++ b/src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt
@@ -128,8 +128,9 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
return
}
- if (args.custom) {
- SettingsFile.loadCustomConfig(args.game!!)
+ // Always load custom settings when launching a game from an intent
+ if (args.custom || intentGame != null) {
+ SettingsFile.loadCustomConfig(game)
NativeConfig.unloadPerGameConfig()
} else {
NativeConfig.reloadGlobalConfig()