reset all settings
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1713 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+4
-1
@@ -24,12 +24,15 @@ void cleanup(char *msg) // single program exit point;
|
||||
SDL_Quit();
|
||||
}
|
||||
|
||||
VARF(resetcfg, 0, 0, 1);
|
||||
|
||||
void quit() // normal exit
|
||||
{
|
||||
extern void writeinitcfg();
|
||||
writeinitcfg();
|
||||
writeservercfg();
|
||||
writecfg();
|
||||
if(resetcfg) deletecfg();
|
||||
else writecfg();
|
||||
cleanup(NULL);
|
||||
exit(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user