summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authort895 <clombardo169@gmail.com>2024-01-26 23:05:02 -0500
committert895 <clombardo169@gmail.com>2024-01-26 23:05:02 -0500
commit6a4b25699d6a478d519a650b4e8b384873b0727b (patch)
treede87cae5759b2fa4bb6d6312dcfea5845092351f
parentbd8635e26a653739da5052143f7ec847f5537520 (diff)
android: Reload global settings on closing emulation
UI like the driver manager expects the global settings to be loaded when in the MainActivity so we reload global config to properly reset state on exit.
-rw-r--r--src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt1
1 files changed, 1 insertions, 0 deletions
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 22da1d0e5..ef393c4be 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
@@ -301,6 +301,7 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback {
R.id.menu_exit -> {
emulationState.stop()
+ NativeConfig.reloadGlobalConfig()
emulationViewModel.setIsEmulationStopping(true)
binding.drawerLayout.close()
binding.inGameMenu.requestFocus()