mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 14:56:17 +00:00
:(
This commit is contained in:
parent
c3b0565714
commit
e519c5a9ef
1 changed files with 9 additions and 9 deletions
18
src/main.cpp
18
src/main.cpp
|
|
@ -218,15 +218,6 @@ static void setGamePathInRegistry() {
|
||||||
}
|
}
|
||||||
int main(int argc, char *argv[]){
|
int main(int argc, char *argv[]){
|
||||||
char msg[512];
|
char msg[512];
|
||||||
/* now we load the config */
|
|
||||||
Config conf;
|
|
||||||
conf.read(argc, argv);
|
|
||||||
#if defined WIN32
|
|
||||||
if(conf.Windows_AllocConsole == true){
|
|
||||||
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
loadLanguageMetadata(); //there will be a segfault on fclose if I don't move it here
|
loadLanguageMetadata(); //there will be a segfault on fclose if I don't move it here
|
||||||
|
|
||||||
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
|
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
|
||||||
|
|
@ -276,6 +267,15 @@ int main(int argc, char *argv[]){
|
||||||
/* Initialize physfs here so that config can call PHYSFS_getPrefDir */
|
/* Initialize physfs here so that config can call PHYSFS_getPrefDir */
|
||||||
PHYSFS_init(argv[0]);
|
PHYSFS_init(argv[0]);
|
||||||
|
|
||||||
|
/* now we load the config */
|
||||||
|
Config conf;
|
||||||
|
conf.read(argc, argv);
|
||||||
|
#if defined WIN32
|
||||||
|
if(conf.Windows_AllocConsole == true){
|
||||||
|
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!conf.gameFolder.empty())
|
if (!conf.gameFolder.empty())
|
||||||
if (chdir(conf.gameFolder.c_str()) != 0){
|
if (chdir(conf.gameFolder.c_str()) != 0){
|
||||||
showInitError(std::string("Unable to switch into gameFolder ") + conf.gameFolder);
|
showInitError(std::string("Unable to switch into gameFolder ") + conf.gameFolder);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue