mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-04-09 02:41:26 -06:00
Stop emulation state if initialized on destroy
Ensure emulation state is stopped during destruction.
This commit is contained in:
parent
06a535f50e
commit
5a0808d989
@ -543,6 +543,9 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback, Choreographer.Fram
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
if (::emulationState.isInitialized) {
|
||||
emulationState.stop()
|
||||
}
|
||||
EmulationLifecycleUtil.removeHook(onPause)
|
||||
EmulationLifecycleUtil.removeHook(onShutdown)
|
||||
if (gameFd != null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user