|
|
@ -470,8 +470,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback { |
|
|
if (state != State.PAUSED) { |
|
|
if (state != State.PAUSED) { |
|
|
Log.debug("[EmulationFragment] Pausing emulation.") |
|
|
Log.debug("[EmulationFragment] Pausing emulation.") |
|
|
|
|
|
|
|
|
// Release the surface before pausing, since emulation has to be running for that. |
|
|
|
|
|
NativeLibrary.surfaceDestroyed() |
|
|
|
|
|
NativeLibrary.pauseEmulation() |
|
|
NativeLibrary.pauseEmulation() |
|
|
|
|
|
|
|
|
state = State.PAUSED |
|
|
state = State.PAUSED |
|
|
@ -516,7 +514,6 @@ class EmulationFragment : Fragment(), SurfaceHolder.Callback { |
|
|
Log.debug("[EmulationFragment] Surface destroyed.") |
|
|
Log.debug("[EmulationFragment] Surface destroyed.") |
|
|
when (state) { |
|
|
when (state) { |
|
|
State.RUNNING -> { |
|
|
State.RUNNING -> { |
|
|
NativeLibrary.surfaceDestroyed() |
|
|
|
|
|
state = State.PAUSED |
|
|
state = State.PAUSED |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|