From 5a73ff39974f095bcf30f55a33984b2b2f4603ac Mon Sep 17 00:00:00 2001 From: jdolan Date: Sat, 6 Jul 2013 20:37:50 -0400 Subject: [PATCH] Reset prop to NULL before re-testing it. Also conditionalize .game generation. --- radiant/preferences.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index 886eea89..48cdbdf1 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -854,6 +854,7 @@ CGameDescription::CGameDescription( xmlDocPtr pDoc, const Str &GameFile ){ } } + prop = NULL; #if defined ( __linux__ ) || defined ( __APPLE__ ) prop = (char*)xmlGetProp( pNode, (const xmlChar *)"prefix" ); #elif defined ( _WIN32 ) @@ -3567,8 +3568,11 @@ void CGameInstall::Run() { } case GAME_Q2W: { fprintf( fg, " "TOOLS_ATTRIBUTE "=\"%sinstalls/Q2WPack/game\"\n", g_strAppPath.GetBuffer() ); +#if defined ( __linux__ ) || defined ( __APPLE__ ) fprintf( fg, " prefix=\".quake2world\"\n" ); +#elif defined ( _WIN32 ) fprintf( fg, " prefix_win32=\"Quake2World\"\n"); +#endif Str source = g_strAppPath.GetBuffer(); source += "installs/"; source += Q2W_PACK;