Преглед на файлове

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.
t895 преди 2 години
родител
ревизия
6a4b25699d
променени са 1 файла, в които са добавени 1 реда и са изтрити 0 реда
  1. 1 0
      src/android/app/src/main/java/org/yuzu/yuzu_emu/fragments/EmulationFragment.kt

+ 1 - 0
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()