Only use defined signals

This commit is contained in:
MysterD 2022-06-05 22:57:17 -07:00
parent 946f16329c
commit ae7c1427b9
2 changed files with 12 additions and 0 deletions

View File

@ -25,6 +25,12 @@ gBehaviorValues.dialogs.KoopaQuickThiStartDialog = DIALOG_009
gBehaviorValues.dialogs.KoopaQuickBobWinDialog = DIALOG_031 gBehaviorValues.dialogs.KoopaQuickBobWinDialog = DIALOG_031
gBehaviorValues.dialogs.KoopaQuickThiWinDialog = DIALOG_031 gBehaviorValues.dialogs.KoopaQuickThiWinDialog = DIALOG_031
---------------------------
-- force server settings --
---------------------------
gServerSettings.fixCollisionBugs = 1
-------------- --------------
-- movtexs -- -- movtexs --
-------------- --------------

View File

@ -437,9 +437,15 @@ void main_func(void) {
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
#ifdef SIGINT
signal(SIGINT, inthand); signal(SIGINT, inthand);
#endif
#ifdef SIGQUIT
signal(SIGQUIT, inthand); signal(SIGQUIT, inthand);
#endif
#ifdef SIGTERM
signal(SIGTERM, inthand); signal(SIGTERM, inthand);
#endif
parse_cli_opts(argc, argv); parse_cli_opts(argc, argv);
main_func(); main_func();
return 0; return 0;