Update of /cvsroot/super-tux/supertux/lib/utils
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2497/lib/utils
Modified Files:
configfile.cpp
Log Message:
- Cleanups
- Got rid of string_list_type (caution! Bugs with the replacement solutions are likely to happen, that will be fixed)
Index: configfile.cpp
===================================================================
RCS file: /cvsroot/super-tux/supertux/lib/utils/configfile.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- configfile.cpp 27 Jul 2004 09:56:14 -0000 1.5
+++ configfile.cpp 27 Jul 2004 19:31:38 -0000 1.6
@@ -103,7 +103,7 @@
if (root_obj->type == LISP_TYPE_EOF || root_obj->type == LISP_TYPE_PARSE_ERROR)
return;
- if (strcmp(lisp_symbol(lisp_car(root_obj)), "supertux-config") != 0)
+ if (strcmp(lisp_symbol(lisp_car(root_obj)), (package_symbol_name+"-config").c_str()) != 0)
return;
LispReader reader(lisp_cdr(root_obj));
@@ -148,7 +148,7 @@
if(config)
{
- fprintf(config, "(supertux-config\n");
+ fprintf(config, ("("+package_symbol_name+"-config\n").c_str());
fprintf(config, "\t;; the following options can be set to #t or #f:\n");
fprintf(config, "\t(fullscreen %s)\n", use_fullscreen ? "#t" : "#f");
fprintf(config, "\t(sound %s)\n", SoundManager::get()->sound_enabled() ? "#t" : "#f");
|