From 6479690d670fc8d76673f52054a2f3bb97425ccc Mon Sep 17 00:00:00 2001 From: SoftCoder Date: Sat, 23 Sep 2017 23:59:56 -0700 Subject: [PATCH] - fix windows build --- mk/windoze/vc2015/glest_game.vcxproj | 2 +- source/glest_game/main/main.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/mk/windoze/vc2015/glest_game.vcxproj b/mk/windoze/vc2015/glest_game.vcxproj index 5342482c..de0fe488 100644 --- a/mk/windoze/vc2015/glest_game.vcxproj +++ b/mk/windoze/vc2015/glest_game.vcxproj @@ -584,7 +584,7 @@ - + diff --git a/source/glest_game/main/main.cpp b/source/glest_game/main/main.cpp index d4cc4fd6..8a88c6a6 100644 --- a/source/glest_game/main/main.cpp +++ b/source/glest_game/main/main.cpp @@ -6021,6 +6021,7 @@ void EnableCrashingOnCrashes() { int glestMainSEHWrapper(int argc, char** argv) { + bool isSteamMode = hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_STEAM]); #ifdef WIN32_STACK_TRACE //printf("Hooking up WIN32_STACK_TRACE...\n"); __try { @@ -6044,9 +6045,9 @@ __try { IRCThread::setGlobalCacheContainerName(GameConstants::ircClientCacheLookupKey); - if(hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_STEAM]) == true) { + if(isSteamMode == true) { if (!STEAMSHIM_init()) { - printf("Child init failed, terminating.\n"); + printf("Steam API init failed, terminating.\n"); return 42; } }