Shutdown thread preemptively if the loaded file is not a ROM

This commit is contained in:
Jeffrey Pfau 2014-10-21 22:24:32 -07:00
parent 03b5e2d78e
commit 4bb8b7b1fd
1 changed files with 1 additions and 0 deletions

View File

@ -282,6 +282,7 @@ bool GBAThreadStart(struct GBAThread* threadContext) {
}
if (!threadContext->rom) {
threadContext->state = THREAD_SHUTDOWN;
return false;
}