[Super-tux-commit] supertux/lib/utils configfile.cpp,1.4,1.5
Brought to you by:
wkendrick
From: Tobias G. <to...@us...> - 2004-07-27 09:56:24
|
Update of /cvsroot/super-tux/supertux/lib/utils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22928/lib/utils Modified Files: configfile.cpp Log Message: commited fix by Leo Savernik <l.s...@ao...>. Index: configfile.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/lib/utils/configfile.cpp,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- configfile.cpp 25 Jul 2004 19:03:35 -0000 1.4 +++ configfile.cpp 27 Jul 2004 09:56:14 -0000 1.5 @@ -28,7 +28,7 @@ using namespace SuperTux; #ifdef WIN32 -const char * config_filename = "/st_config.dat"; +const char * config_filename = ("/"+ package_symbol_name + "_config.dat").c_str(); #else const char * config_filename = "/config"; #endif @@ -138,6 +138,7 @@ customload(reader); lisp_free(root_obj); + fclose(file); } void Config::save () @@ -173,6 +174,7 @@ customsave(config); fprintf(config, ")\n"); + fclose(config); } } |