From 631ea8613fcfc456a958d07ef75484b84265f9be Mon Sep 17 00:00:00 2001 From: mattn Date: Sun, 16 Mar 2008 20:54:29 +0000 Subject: [PATCH] * added UFOAI to gamepack configuration code git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/branches/ZeroRadiant@224 8a3a26a2-13c4-0310-b231-cf6edde360e5 --- radiant/preferences.cpp | 15 +++++++++++++++ radiant/preferences.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/radiant/preferences.cpp b/radiant/preferences.cpp index 88fb4fe4..2f6a45c4 100644 --- a/radiant/preferences.cpp +++ b/radiant/preferences.cpp @@ -3166,6 +3166,9 @@ void CGameInstall::BuildDialog() { case GAME_URT: combo_list = g_list_append( combo_list, "Urban Terror (standalone)" ); break; + case GAME_UFOAI: + combo_list = g_list_append( combo_list, "UFO: Alien Invasion" ); + break; case GAME_WARSOW: combo_list = g_list_append( combo_list, "Warsow" ); break; @@ -3254,6 +3257,15 @@ void CGameInstall::Run() { fprintf( fg, " basegame=\"q3ut4\"\n" ); break; } + case GAME_UFOAI: { + Str source = g_strAppPath.GetBuffer(); + source += "installs/"; + source += UFOAI_PACK; + Str dest = m_strEngine.GetBuffer(); + CopyTree( source.GetBuffer(), dest.GetBuffer() ); + fprintf( fg, " basegame=\"base\"\n" ); + break; + } case GAME_WARSOW: fprintf( fg, " basegame=\"basewsw\"\n" ); break; @@ -3284,6 +3296,9 @@ void CGameInstall::ScanGames() { if ( stricmp( dirlist->d_name, URT_PACK ) == 0 ) { m_availGames[ iGame++ ] = GAME_URT; } + if ( stricmp( dirlist->d_name, UFOAI_PACK ) == 0 ) { + m_availGames[ iGame++ ] = GAME_UFOAI; + } } closedir( dir ); } diff --git a/radiant/preferences.h b/radiant/preferences.h index 79df8700..8a75b281 100644 --- a/radiant/preferences.h +++ b/radiant/preferences.h @@ -200,6 +200,7 @@ select games, copy editing assets and write out configuration files #define Q3_PACK "Q3Pack" #define URT_PACK "UrTPack" +#define UFOAI_PACK "UFOAIPack" class CGameInstall : public Dialog { public: @@ -212,6 +213,7 @@ public: GAME_NONE = 0, GAME_Q3 = 1, GAME_URT, + GAME_UFOAI, GAME_WARSOW, GAME_COUNT }; -- 2.39.2