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:
driAn
2008-03-21 11:32:33 +00:00
parent 52de812b6b
commit 71d72dc592
5 changed files with 21 additions and 1 deletions
+4 -1
View File
@@ -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);
}