From 6a4b25699d6a478d519a650b4e8b384873b0727b Mon Sep 17 00:00:00 2001 From: t895 Date: Fri, 26 Jan 2024 23:05:02 -0500 Subject: 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. --- .../app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'src/android') 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() -- cgit v1.2.3