mirror of https://github.com/mgba-emu/mgba.git
Perf: Fix race condition if a game crashes immediately on start
This commit is contained in:
parent
6f24064f4f
commit
73d2c8fda8
1
CHANGES
1
CHANGES
|
@ -54,6 +54,7 @@ Bugfixes:
|
||||||
- SDL: Fix potential build issues when Qt and SDL2 are in use
|
- SDL: Fix potential build issues when Qt and SDL2 are in use
|
||||||
- GBA Memory: Fix jumping to invalid memory when switching from Thumb to ARM
|
- GBA Memory: Fix jumping to invalid memory when switching from Thumb to ARM
|
||||||
- GBA Video: Fix second frame mode 5
|
- GBA Video: Fix second frame mode 5
|
||||||
|
- Perf: Fix race condition if a game crashes immediately on start
|
||||||
Misc:
|
Misc:
|
||||||
- Qt: Show multiplayer numbers in window title
|
- Qt: Show multiplayer numbers in window title
|
||||||
- Qt: Handle saving input settings better
|
- Qt: Handle saving input settings better
|
||||||
|
|
|
@ -96,7 +96,14 @@ int main(int argc, char** argv) {
|
||||||
if (!didStart) {
|
if (!didStart) {
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
}
|
}
|
||||||
|
GBAThreadInterrupt(&context);
|
||||||
|
if (GBAThreadHasCrashed(&context)) {
|
||||||
|
GBAThreadJoin(&context);
|
||||||
|
goto cleanup;
|
||||||
|
}
|
||||||
|
|
||||||
GBAGetGameCode(context.gba, gameCode);
|
GBAGetGameCode(context.gba, gameCode);
|
||||||
|
GBAThreadContinue(&context);
|
||||||
|
|
||||||
int frames = perfOpts.frames;
|
int frames = perfOpts.frames;
|
||||||
if (!frames) {
|
if (!frames) {
|
||||||
|
|
Loading…
Reference in New Issue