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:
parent
74cf71102d
commit
a29706347e
1 changed files with 6 additions and 5 deletions
11
src/game.cpp
11
src/game.cpp
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue