only write init.cfg when using --init
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1899 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -83,6 +83,7 @@ VARF(fullscreen, 0, 1, 1, setfullscreen(fullscreen!=0));
|
||||
|
||||
void writeinitcfg()
|
||||
{
|
||||
if(!restoredinits) return;
|
||||
FILE *f = openfile(path("config/init.cfg", true), "w");
|
||||
if(!f) return;
|
||||
fprintf(f, "// automatically written on exit, DO NOT MODIFY\n// modify settings in game\n");
|
||||
|
||||
Reference in New Issue
Block a user