parent
79c48ba799
commit
2d8c8bc6fa
|
@ -759,6 +759,12 @@ int main(int argc, char** argv) {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(HAVE_SDL2) && defined(_WIN32) && !defined(SUPPORT_XP)
|
||||||
|
if (!IsWindows7OrGreater()) {
|
||||||
|
SDL_SetHint("SDL_HINT_AUDIODRIVER","winmm");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_GUI
|
#ifdef HAVE_GUI
|
||||||
if (e.preInit(consoleMode || benchMode || infoMode || outputMode)) {
|
if (e.preInit(consoleMode || benchMode || infoMode || outputMode)) {
|
||||||
if (consoleMode || benchMode || infoMode || outputMode) {
|
if (consoleMode || benchMode || infoMode || outputMode) {
|
||||||
|
@ -789,7 +795,6 @@ int main(int argc, char** argv) {
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
if (!fileName.empty() && ((!e.getConfBool("tutIntroPlayed",TUT_INTRO_PLAYED)) || e.getConfInt("alwaysPlayIntro",0)!=3 || consoleMode || benchMode || infoMode || outputMode)) {
|
if (!fileName.empty() && ((!e.getConfBool("tutIntroPlayed",TUT_INTRO_PLAYED)) || e.getConfInt("alwaysPlayIntro",0)!=3 || consoleMode || benchMode || infoMode || outputMode)) {
|
||||||
logI("loading module...");
|
logI("loading module...");
|
||||||
FILE* f=ps_fopen(fileName.c_str(),"rb");
|
FILE* f=ps_fopen(fileName.c_str(),"rb");
|
||||||
|
|
Loading…
Reference in a new issue