Always resume emulator, even if running

Fixes skyline-emu/skyline#2305
This commit is contained in:
Abandoned Cart 2023-04-19 10:33:11 -04:00 committed by Billy Laws
parent 24d4f5e3cd
commit 96c5b94429

View File

@ -370,10 +370,8 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
@SuppressWarnings("WeakerAccess") @SuppressWarnings("WeakerAccess")
fun resumeEmulator() { fun resumeEmulator() {
if (!isEmulatorPaused) return
gameSurface?.let { setSurface(it) } gameSurface?.let { setSurface(it) }
if (!emulationSettings.isAudioOutputDisabled) changeAudioStatus(!emulationSettings.isAudioOutputDisabled)
changeAudioStatus(true)
isEmulatorPaused = false isEmulatorPaused = false
} }
@ -401,6 +399,8 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
resumeEmulator() resumeEmulator()
GpuDriverHelper.forceMaxGpuClocks(emulationSettings.forceMaxGpuClocks)
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) { if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.R) {
@Suppress("DEPRECATION") @Suppress("DEPRECATION")
window.decorView.systemUiVisibility = (View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY window.decorView.systemUiVisibility = (View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY