Fix crash related to unpause being called after stop
This commit is contained in:
parent
ce6b480bee
commit
0184e1af53
@ -229,9 +229,9 @@ public final class EmulationActivity extends AppCompatActivity {
|
|||||||
finish();
|
finish();
|
||||||
})
|
})
|
||||||
.setNegativeButton(android.R.string.cancel, (dialogInterface, i) ->
|
.setNegativeButton(android.R.string.cancel, (dialogInterface, i) ->
|
||||||
{
|
NativeLibrary.UnPauseEmulation())
|
||||||
}).setOnDismissListener(dialogInterface ->
|
.setOnCancelListener(dialogInterface ->
|
||||||
NativeLibrary.UnPauseEmulation())
|
NativeLibrary.UnPauseEmulation())
|
||||||
.create()
|
.create()
|
||||||
.show();
|
.show();
|
||||||
}
|
}
|
||||||
|
@ -333,6 +333,7 @@ jobjectArray Java_org_citra_citra_1emu_NativeLibrary_GetInstalledGamePaths(
|
|||||||
return jgames;
|
return jgames;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO(xperia64): ensure these cannot be called in an invalid state (e.g. after StopEmulation)
|
||||||
void Java_org_citra_citra_1emu_NativeLibrary_UnPauseEmulation(JNIEnv* env,
|
void Java_org_citra_citra_1emu_NativeLibrary_UnPauseEmulation(JNIEnv* env,
|
||||||
[[maybe_unused]] jclass clazz) {
|
[[maybe_unused]] jclass clazz) {
|
||||||
pause_emulation = false;
|
pause_emulation = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user