mirror of
https://github.com/UberGames/GtkRadiant.git
synced 2024-11-28 22:52:15 +00:00
* 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:
parent
cbe18164fb
commit
00daec6095
2 changed files with 17 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue