/** * @brief Reload the current savegame, when player want to continue after death */ static void menu_death_continue( unsigned int wid, char* str ) { (void) str; window_destroy( wid ); menu_Close(MENU_DEATH); save_reload(); }
static void process_requests(void) { char *req = cgi_variable("request"); char *newvalue = cgi_variable("newvalue"); char *parameter = cgi_variable("parameter"); char *service = cgi_variable("service"); int snum=0; if (!req) return; if (service) { /* work out what service it is */ if (strcmp(service,SGLOBAL) == 0) { snum = GLOBALS_SNUM; } else if (strcmp(service,SDEFAULTS) == 0) { snum = DEFAULTS_SNUM; } else { snum = lp_servicenumber(service); if (snum < 0) return; } } if (!newvalue) newvalue = ""; if (strcmp(req,"Change") == 0) { /* change the value of a parameter */ if (!parameter || !service) return; lp_do_parameter(snum, parameter, newvalue); } else if (strcmp(req,"Rename") == 0) { /* rename a service */ if (!newvalue || !service) return; lp_rename_service(snum, newvalue); } else if (strcmp(req,"Remove") == 0) { /* remove a service */ if (!service) return; lp_remove_service(snum); } else if (strcmp(req,"Copy") == 0) { /* copy a service */ if (!service || !newvalue) return; lp_copy_service(snum, newvalue); } save_reload(); }