- fix windows build
This commit is contained in:
parent
42221f2d52
commit
6479690d67
|
@ -584,7 +584,7 @@
|
||||||
<ClCompile Include="..\..\..\source\glest_game\sound\sound_container.cpp" />
|
<ClCompile Include="..\..\..\source\glest_game\sound\sound_container.cpp" />
|
||||||
<ClCompile Include="..\..\..\source\glest_game\sound\sound_renderer.cpp" />
|
<ClCompile Include="..\..\..\source\glest_game\sound\sound_renderer.cpp" />
|
||||||
<ClCompile Include="..\..\..\source\glest_game\steam\steam.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\projectile_type.cpp" />
|
||||||
<ClCompile Include="..\..\..\source\glest_game\types\tileset_model_type.cpp" />
|
<ClCompile Include="..\..\..\source\glest_game\types\tileset_model_type.cpp" />
|
||||||
<ClCompile Include="..\..\..\source\glest_game\type_instances\command.cpp" />
|
<ClCompile Include="..\..\..\source\glest_game\type_instances\command.cpp" />
|
||||||
|
|
|
@ -6021,6 +6021,7 @@ void EnableCrashingOnCrashes() {
|
||||||
|
|
||||||
int glestMainSEHWrapper(int argc, char** argv) {
|
int glestMainSEHWrapper(int argc, char** argv) {
|
||||||
|
|
||||||
|
bool isSteamMode = hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_STEAM]);
|
||||||
#ifdef WIN32_STACK_TRACE
|
#ifdef WIN32_STACK_TRACE
|
||||||
//printf("Hooking up WIN32_STACK_TRACE...\n");
|
//printf("Hooking up WIN32_STACK_TRACE...\n");
|
||||||
__try {
|
__try {
|
||||||
|
@ -6044,9 +6045,9 @@ __try {
|
||||||
|
|
||||||
IRCThread::setGlobalCacheContainerName(GameConstants::ircClientCacheLookupKey);
|
IRCThread::setGlobalCacheContainerName(GameConstants::ircClientCacheLookupKey);
|
||||||
|
|
||||||
if(hasCommandArgument(argc, argv,GAME_ARGS[GAME_ARG_STEAM]) == true) {
|
if(isSteamMode == true) {
|
||||||
if (!STEAMSHIM_init()) {
|
if (!STEAMSHIM_init()) {
|
||||||
printf("Child init failed, terminating.\n");
|
printf("Steam API init failed, terminating.\n");
|
||||||
return 42;
|
return 42;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue