add the retard check to the new menus

git-svn-id: svn://katsu.triplehelix.org/dgamelaunch/trunk@435 db0b04b0-f4d1-0310-9a6d-de3e77497b0e
This commit is contained in:
Pasi Kallinen 2008-04-05 15:07:26 +00:00
parent 3e2e1c1721
commit ef7920a624
2 changed files with 8 additions and 0 deletions

View File

@ -1692,6 +1692,10 @@ runmenuloop(struct dg_menu *menu)
return_from_submenu = 0;
return;
}
if (check_retard(0)) {
graceful_exit(119);
}
}
}

View File

@ -229,6 +229,7 @@ dgl_exec_cmdqueue(struct dg_cmdpart *queue, int game, struct dg_user *me)
} else
waitpid(child, NULL, 0);
refresh();
check_retard(1);
}
break;
case DGLCMD_SETENV:
@ -266,6 +267,7 @@ dgl_exec_cmdqueue(struct dg_cmdpart *queue, int game, struct dg_user *me)
for (i = 0; i < num_games; i++) {
if ((!strcmp(myconfig[i]->game_name, p1) || !strcmp(myconfig[i]->shortname, p1)) && myconfig[i]->rcfile) {
editoptions(i);
check_retard(1);
break;
}
}
@ -307,6 +309,8 @@ dgl_exec_cmdqueue(struct dg_cmdpart *queue, int game, struct dg_user *me)
setproctitle ("%s", me->username);
initcurses ();
check_retard(1);
}
break;
}