mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-24 18:31:36 +00:00
Reset prop to NULL before re-testing it. Also conditionalize .game generation.
This commit is contained in:
parent
31ad3cbdeb
commit
5a73ff3997
1 changed files with 4 additions and 0 deletions
|
@ -854,6 +854,7 @@ CGameDescription::CGameDescription( xmlDocPtr pDoc, const Str &GameFile ){
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
prop = NULL;
|
||||||
#if defined ( __linux__ ) || defined ( __APPLE__ )
|
#if defined ( __linux__ ) || defined ( __APPLE__ )
|
||||||
prop = (char*)xmlGetProp( pNode, (const xmlChar *)"prefix" );
|
prop = (char*)xmlGetProp( pNode, (const xmlChar *)"prefix" );
|
||||||
#elif defined ( _WIN32 )
|
#elif defined ( _WIN32 )
|
||||||
|
@ -3567,8 +3568,11 @@ void CGameInstall::Run() {
|
||||||
}
|
}
|
||||||
case GAME_Q2W: {
|
case GAME_Q2W: {
|
||||||
fprintf( fg, " "TOOLS_ATTRIBUTE "=\"%sinstalls/Q2WPack/game\"\n", g_strAppPath.GetBuffer() );
|
fprintf( fg, " "TOOLS_ATTRIBUTE "=\"%sinstalls/Q2WPack/game\"\n", g_strAppPath.GetBuffer() );
|
||||||
|
#if defined ( __linux__ ) || defined ( __APPLE__ )
|
||||||
fprintf( fg, " prefix=\".quake2world\"\n" );
|
fprintf( fg, " prefix=\".quake2world\"\n" );
|
||||||
|
#elif defined ( _WIN32 )
|
||||||
fprintf( fg, " prefix_win32=\"Quake2World\"\n");
|
fprintf( fg, " prefix_win32=\"Quake2World\"\n");
|
||||||
|
#endif
|
||||||
Str source = g_strAppPath.GetBuffer();
|
Str source = g_strAppPath.GetBuffer();
|
||||||
source += "installs/";
|
source += "installs/";
|
||||||
source += Q2W_PACK;
|
source += Q2W_PACK;
|
||||||
|
|
Loading…
Reference in a new issue