differ initialisation of zipios stuff...

...until command-line options were parsed, so that the log system is
initialized and messages are not lost
This commit is contained in:
Yann Dirson 2005-01-25 23:18:54 +00:00
parent 74cf71102d
commit a29706347e

View file

@ -1471,6 +1471,12 @@ int play_game(int argc, char** argv)
}
}
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 play_game(int argc, char** argv)
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);