mirror of https://github.com/mgba-emu/mgba.git
Shutdown thread preemptively if the loaded file is not a ROM
This commit is contained in:
parent
03b5e2d78e
commit
4bb8b7b1fd
|
@ -282,6 +282,7 @@ bool GBAThreadStart(struct GBAThread* threadContext) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!threadContext->rom) {
|
if (!threadContext->rom) {
|
||||||
|
threadContext->state = THREAD_SHUTDOWN;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue