also delete init.cfg on settings reset
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2004 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -567,9 +567,9 @@ COMMAND(writecfg, ARG_NONE);
|
||||
|
||||
bool deletecfg()
|
||||
{
|
||||
if(!delfile("config/saved.cfg"))
|
||||
if(!delfile("config/saved.cfg") || !delfile("config/init.cfg"))
|
||||
{
|
||||
conoutf("could not delete the file config/saved.cfg");
|
||||
conoutf("could not delete the configuration");
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user