CVSROOT:        /cvsroot/wesnoth
Module name:    wesnoth
Branch:         
Changes by:     Yann Dirson <[EMAIL PROTECTED]> 05/01/25 23:18:55

Modified files:
        src            : game.cpp 

Log message:
        differ initialisation of zipios stuff until command-line options were 
parsed, so that the log system is initialized and messages are not lost

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/game.cpp.diff?tr1=1.181&tr2=1.182&r1=text&r2=text

Patches:
Index: wesnoth/src/game.cpp
diff -u wesnoth/src/game.cpp:1.181 wesnoth/src/game.cpp:1.182
--- wesnoth/src/game.cpp:1.181  Sat Jan 22 14:22:25 2005
+++ wesnoth/src/game.cpp        Tue Jan 25 23:18:54 2005
@@ -1,4 +1,4 @@
-/* $Id: game.cpp,v 1.181 2005/01/22 14:22:25 Sirp Exp $ */
+/* $Id: game.cpp,v 1.182 2005/01/25 23:18:54 ydirson Exp $ */
 /*
    Copyright (C) 2003 by David White <[EMAIL PROTECTED]>
    Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -1471,6 +1471,12 @@
                }
        }
 
+       if (!filesystem_init()) {
+               std::cerr << "cannot init filesystem code\n";
+               return 1;
+       }
+
+
        srand(time(NULL));
 
        game_controller game(argc,argv,use_sound);
@@ -1597,11 +1603,6 @@
 
 int main(int argc, char** argv)
 {
-       if (!filesystem_init()) {
-               std::cerr << "cannot init filesystem code\n";
-               return 1;
-       }
-
        try {
                std::cerr << "started game: " << SDL_GetTicks() << "\n";
                const int res = play_game(argc,argv);


Reply via email to