From e5126b4c65535d07f1327011cc7e6303b6a81413 Mon Sep 17 00:00:00 2001 From: Scott Ehlert Date: Sun, 16 May 2010 02:27:53 -0400 Subject: [PATCH] Added support for "mac" in game data files (bug 4393, r=dvander). --- core/logic/GameConfigs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/logic/GameConfigs.cpp b/core/logic/GameConfigs.cpp index 2c79649d..30d814a1 100644 --- a/core/logic/GameConfigs.cpp +++ b/core/logic/GameConfigs.cpp @@ -78,8 +78,8 @@ static char g_GameName[256] = {'$', '\0'}; #define PLATFORM_NAME "linux" #define PLATFORM_SERVER_BINARY "server_i486.so" #elif defined PLATFORM_APPLE -#define PLATFORM_NAME "undef" -#define PLATFORM_SERVER_BINARY "undef.dylib" +#define PLATFORM_NAME "mac" +#define PLATFORM_SERVER_BINARY "server.dylib" #endif struct TempSigInfo @@ -299,7 +299,7 @@ SMCResult CGameConfig::ReadSMC_NewSection(const SMCStates *states, const char *n } else { - if (strcmp(name, "linux") != 0 && strcmp(name, "windows") != 0) + if (strcmp(name, "linux") != 0 && strcmp(name, "windows") != 0 && strcmp(name, "mac") != 0) { smcore.LogError("[SM] Error while parsing Address section for \"%s\" (%s):", m_Address, m_CurFile); smcore.LogError("[SM] Unrecognized platform \"%s\"", name);