* added UFOAI to gamepack configuration code

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/branches/ZeroRadiant@224 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
mattn 2008-03-16 20:54:29 +00:00
parent cbe18164fb
commit 00daec6095
2 changed files with 17 additions and 0 deletions

View file

@ -3166,6 +3166,9 @@ void CGameInstall::BuildDialog() {
case GAME_URT: case GAME_URT:
combo_list = g_list_append( combo_list, "Urban Terror (standalone)" ); combo_list = g_list_append( combo_list, "Urban Terror (standalone)" );
break; break;
case GAME_UFOAI:
combo_list = g_list_append( combo_list, "UFO: Alien Invasion" );
break;
case GAME_WARSOW: case GAME_WARSOW:
combo_list = g_list_append( combo_list, "Warsow" ); combo_list = g_list_append( combo_list, "Warsow" );
break; break;
@ -3254,6 +3257,15 @@ void CGameInstall::Run() {
fprintf( fg, " basegame=\"q3ut4\"\n" ); fprintf( fg, " basegame=\"q3ut4\"\n" );
break; 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: case GAME_WARSOW:
fprintf( fg, " basegame=\"basewsw\"\n" ); fprintf( fg, " basegame=\"basewsw\"\n" );
break; break;
@ -3284,6 +3296,9 @@ void CGameInstall::ScanGames() {
if ( stricmp( dirlist->d_name, URT_PACK ) == 0 ) { if ( stricmp( dirlist->d_name, URT_PACK ) == 0 ) {
m_availGames[ iGame++ ] = GAME_URT; m_availGames[ iGame++ ] = GAME_URT;
} }
if ( stricmp( dirlist->d_name, UFOAI_PACK ) == 0 ) {
m_availGames[ iGame++ ] = GAME_UFOAI;
}
} }
closedir( dir ); closedir( dir );
} }

View file

@ -200,6 +200,7 @@ select games, copy editing assets and write out configuration files
#define Q3_PACK "Q3Pack" #define Q3_PACK "Q3Pack"
#define URT_PACK "UrTPack" #define URT_PACK "UrTPack"
#define UFOAI_PACK "UFOAIPack"
class CGameInstall : public Dialog { class CGameInstall : public Dialog {
public: public:
@ -212,6 +213,7 @@ public:
GAME_NONE = 0, GAME_NONE = 0,
GAME_Q3 = 1, GAME_Q3 = 1,
GAME_URT, GAME_URT,
GAME_UFOAI,
GAME_WARSOW, GAME_WARSOW,
GAME_COUNT GAME_COUNT
}; };