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.
This commit is contained in:
t895
2024-01-26 23:05:02 -05:00
parent 29b2c706de
commit d275537111
@@ -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()