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
+10
View File
@@ -562,6 +562,16 @@ void writecfg()
COMMAND(writecfg, ARG_NONE);
bool deletecfg()
{
if(!delfile("config/saved.cfg"))
{
conoutf("could not delete the file config/saved.cfg");
return false;
}
return true;
}
void identnames(vector<const char *> &names, bool builtinonly)
{
enumerateht(*idents) if(!builtinonly || idents->enumc->data.type != ID_ALIAS) names.add(idents->enumc->key);