mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 21:47:49 +00:00
Let's not break config/language initialization order on non-win32 platforms.
Reverting to old behavior, short term fix.
This commit is contained in:
parent
f443665fd1
commit
928e898ef6
17
src/game.cpp
17
src/game.cpp
@ -1396,12 +1396,15 @@ int play_game(int argc, char** argv)
|
||||
|
||||
game_controller game(argc,argv,use_sound);
|
||||
|
||||
bool res = game.init_config();
|
||||
bool res;
|
||||
#ifdef WIN32
|
||||
res = game.init_config();
|
||||
if(res == false) {
|
||||
std::cerr << "could not initialize game config\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
res = game.init_video();
|
||||
if(res == false) {
|
||||
std::cerr << "could not initialize display\n";
|
||||
@ -1414,6 +1417,16 @@ int play_game(int argc, char** argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
// it is better for gettext-native platforms to read the config
|
||||
// files after having pre-initialized the language, maybe...
|
||||
res = game.init_config();
|
||||
if(res == false) {
|
||||
std::cerr << "could not initialize game config\n";
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
const cursor::manager cursor_manager;
|
||||
#if defined(_X11) && !defined(__APPLE__)
|
||||
SDL_EventState(SDL_SYSWMEVENT, SDL_ENABLE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user