mirror of
https://github.com/skyline-emu/skyline.git
synced 2024-11-22 20:09:17 +01:00
parent
24d4f5e3cd
commit
96c5b94429
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user