mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-04 09:56:30 +00:00
Don't call exit() directly. Instead, use the backend's quit() method for normal
shutdown, and error() for abnormal termination. svn-id: r20818
This commit is contained in:
parent
ed577e61d5
commit
43f2d984fb
@ -48,7 +48,7 @@ void manageEvents(void) {
|
||||
mouseData.Y = event.mouse.y;
|
||||
break;
|
||||
case OSystem::EVENT_QUIT:
|
||||
exit(0);
|
||||
g_system->quit();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -436,10 +436,9 @@ u8 compareObjectParam(u8 objIdx, u8 param1, s16 param2) {
|
||||
}
|
||||
default:
|
||||
{
|
||||
printf
|
||||
("Unsupported compare type: %d in compareObjectParam\n",
|
||||
error
|
||||
("Unsupported compare type: %d in compareObjectParam",
|
||||
param1 - 1);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -403,10 +403,9 @@ u16 computeScriptStackSub(u8 mode, byte *scriptPtr, s16 *stackPtr,
|
||||
}
|
||||
default:
|
||||
{
|
||||
printf
|
||||
("Unsupported opcode %X in computeScriptStack\n",
|
||||
error
|
||||
("Unsupported opcode %X in computeScriptStack",
|
||||
opcode - 1);
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
@ -2752,8 +2751,7 @@ void executeScript(prcLinkedListStruct *scriptElement, u16 param) {
|
||||
}
|
||||
default:
|
||||
{
|
||||
printf("Unsupported opcode %X\n", opcode - 1);
|
||||
exit(1);
|
||||
error("Unsupported opcode %X", opcode - 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user