* Tremulous patch by Ingar

git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@288 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
mattn 2008-06-27 14:30:13 +00:00
parent 8a48fa56a3
commit 591626e4d8
3 changed files with 25 additions and 2 deletions

View file

@ -13,9 +13,12 @@ The subversion client can be obtained from the Subversion site.
To get a copy of the source using the commandline Subversion client:
Change the current directory to the desired location for the source.
svn checkout https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk/ ./GtkRadiant
svn checkout https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q3Pack/trunk/ ./GtkRadiant/games/Q3Pack
svn checkout https://zerowing.idsoftware.com/svn/radiant.gamepacks/UFOAIPack/trunk/ ./GtkRadiant/games/UFOAIPack
Download the desired game packs:
cd ./GtkRadiant/install/installs
svn checkout https://zerowing.idsoftware.com/svn/radiant.gamepacks/Q3Pack/trunk/ ./Q3Pack
svn checkout https://zerowing.idsoftware.com/svn/radiant.gamepacks/UFOAIPack/trunk/ ./UFOAIPack
svn checkout https://zerowing.idsoftware.com/svn/radiant.gamepacks/TremulousPack/trunk/ ./TremulousPack
Linux/OSX(using X-windows)
==========================

View file

@ -3248,6 +3248,9 @@ void CGameInstall::BuildDialog() {
case GAME_NEXUIZ:
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _("Nexuiz") );
break;
case GAME_TREMULOUS:
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _("Tremulous") );
break;
}
iGame++;
}
@ -3414,6 +3417,18 @@ void CGameInstall::Run() {
fprintf( fg, " basegame=\"data\"\n" );
break;
}
case GAME_TREMULOUS: {
fprintf( fg, " gametools=\"%sinstalls/TremulousPack/game\"\n", g_strAppPath.GetBuffer() );
fprintf( fg, " prefix=\".tremulous\"\n" );
Str source = g_strAppPath.GetBuffer();
source += "installs/";
source += TREMULOUS_PACK;
source += "/install/";
Str dest = m_strEngine.GetBuffer();
CopyTree( source.GetBuffer(), dest.GetBuffer() );
fprintf( fg, " basegame=\"base\"\n" );
break;
}
}
fprintf( fg, "/>\n" );
fclose( fg );
@ -3454,6 +3469,9 @@ void CGameInstall::ScanGames() {
if ( stricmp( dirname, Q2_PACK ) == 0 ) {
m_availGames[ iGame++ ] = GAME_Q2;
}
if ( stricmp( dirname, TREMULOUS_PACK ) == 0 ) {
m_availGames[ iGame++ ] = GAME_TREMULOUS;
}
}
}

View file

@ -206,6 +206,7 @@ select games, copy editing assets and write out configuration files
#define WARSOW_PACK "WarsowPack"
#define NEXUIZ_PACK "NexuizPack"
#define Q2_PACK "Q2Pack"
#define TREMULOUS_PACK "TremulousPack"
class CGameInstall : public Dialog {
public:
@ -226,6 +227,7 @@ public:
GAME_WARSOW,
GAME_NEXUIZ,
GAME_Q2,
GAME_TREMULOUS,
GAME_COUNT
};