- fix windows build

This commit is contained in:
SoftCoder 2017-09-23 23:59:56 -07:00
parent 42221f2d52
commit 6479690d67
2 changed files with 4 additions and 3 deletions

View File

@ -584,7 +584,7 @@
<ClCompile Include="..\..\..\source\glest_game\sound\sound_container.cpp" />
<ClCompile Include="..\..\..\source\glest_game\sound\sound_renderer.cpp" />
<ClCompile Include="..\..\..\source\glest_game\steam\steam.cpp" />
<ClCompile Include="..\..\..\source\glest_game\steamshim\steamshim_child.cpp" />
<ClCompile Include="..\..\..\source\glest_game\steamshim\steamshim_child.c" />
<ClCompile Include="..\..\..\source\glest_game\types\projectile_type.cpp" />
<ClCompile Include="..\..\..\source\glest_game\types\tileset_model_type.cpp" />
<ClCompile Include="..\..\..\source\glest_game\type_instances\command.cpp" />

View File

@ -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;
}
}