mirror of
https://github.com/TTimo/GtkRadiant.git
synced 2025-01-10 03:51:18 +00:00
Adding ReactionPack to Radiant code.
git-svn-id: svn://svn.icculus.org/gtkradiant/GtkRadiant/trunk@430 8a3a26a2-13c4-0310-b231-cf6edde360e5
This commit is contained in:
parent
cb169716fe
commit
4d362964f7
3 changed files with 22 additions and 2 deletions
|
@ -33,7 +33,7 @@ class Config:
|
||||||
# platforms for which to assemble a setup
|
# platforms for which to assemble a setup
|
||||||
self.setup_platforms = [ 'local', 'x86', 'x64', 'win32' ]
|
self.setup_platforms = [ 'local', 'x86', 'x64', 'win32' ]
|
||||||
# paks to assemble in the setup
|
# paks to assemble in the setup
|
||||||
self.setup_packs = [ 'Q3Pack', 'UrTPack', 'UFOAIPack', 'Q2WPack', 'JAPack' ]
|
self.setup_packs = [ 'Q3Pack', 'UrTPack', 'UFOAIPack', 'Q2WPack', 'JAPack', 'ReactionPack' ]
|
||||||
|
|
||||||
def __repr__( self ):
|
def __repr__( self ):
|
||||||
return 'config: target=%s config=%s' % ( self.target_selected, self.config_selected )
|
return 'config: target=%s config=%s' % ( self.target_selected, self.config_selected )
|
||||||
|
@ -259,7 +259,7 @@ class Config:
|
||||||
|
|
||||||
def FetchGamePaks( self, path ):
|
def FetchGamePaks( self, path ):
|
||||||
for pak in self.setup_packs:
|
for pak in self.setup_packs:
|
||||||
if ( pak == 'Q3Pack' or pak == 'UrTPack' or pak == 'UFOAIPack' or pak == 'Q2WPack' or pak == 'JAPack' ):
|
if ( pak == 'Q3Pack' or pak == 'UrTPack' or pak == 'UFOAIPack' or pak == 'Q2WPack' or pak == 'JAPack' or pak == 'ReactionPack' ):
|
||||||
svnurl = 'https://zerowing.idsoftware.com/svn/radiant.gamepacks/%s/trunk' % pak
|
svnurl = 'https://zerowing.idsoftware.com/svn/radiant.gamepacks/%s/trunk' % pak
|
||||||
self.CheckoutOrUpdate( svnurl, os.path.join( path, 'installs', pak ) )
|
self.CheckoutOrUpdate( svnurl, os.path.join( path, 'installs', pak ) )
|
||||||
|
|
||||||
|
|
|
@ -3305,6 +3305,9 @@ void CGameInstall::BuildDialog() {
|
||||||
case GAME_JA:
|
case GAME_JA:
|
||||||
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _("Jedi Academy and mods") );
|
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _("Jedi Academy and mods") );
|
||||||
break;
|
break;
|
||||||
|
case GAME_REACTION:
|
||||||
|
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _("Reaction Quake 3") );
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
iGame++;
|
iGame++;
|
||||||
}
|
}
|
||||||
|
@ -3498,6 +3501,18 @@ void CGameInstall::Run() {
|
||||||
fprintf( fg, " basegame=\"base\"\n" );
|
fprintf( fg, " basegame=\"base\"\n" );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case GAME_REACTION: {
|
||||||
|
fprintf( fg, " "TOOLS_ATTRIBUTE"=\"%sinstalls/"REACTION_PACK"/game\"\n", g_strAppPath.GetBuffer() );
|
||||||
|
fprintf( fg, " prefix=\".Reaction\"\n" );
|
||||||
|
Str source = g_strAppPath.GetBuffer();
|
||||||
|
source += "installs/";
|
||||||
|
source += REACTION_PACK;
|
||||||
|
source += "/install/";
|
||||||
|
Str dest = m_strEngine.GetBuffer();
|
||||||
|
CopyTree( source.GetBuffer(), dest.GetBuffer() );
|
||||||
|
fprintf( fg, " basegame=\"Boomstick\"\n" );
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fprintf( fg, "/>\n" );
|
fprintf( fg, "/>\n" );
|
||||||
fclose( fg );
|
fclose( fg );
|
||||||
|
@ -3544,6 +3559,9 @@ void CGameInstall::ScanGames() {
|
||||||
if ( stricmp( dirname, JA_PACK ) == 0 ) {
|
if ( stricmp( dirname, JA_PACK ) == 0 ) {
|
||||||
m_availGames[ iGame++ ] = GAME_JA;
|
m_availGames[ iGame++ ] = GAME_JA;
|
||||||
}
|
}
|
||||||
|
if ( stricmp( dirname, REACTION_PACK ) == 0 ) {
|
||||||
|
m_availGames[ iGame++ ] = GAME_REACTION;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Sys_Printf("No installable games found in: %s\n",
|
Sys_Printf("No installable games found in: %s\n",
|
||||||
pakPaths.GetBuffer() );
|
pakPaths.GetBuffer() );
|
||||||
|
|
|
@ -209,6 +209,7 @@ select games, copy editing assets and write out configuration files
|
||||||
#define Q2_PACK "Q2Pack"
|
#define Q2_PACK "Q2Pack"
|
||||||
#define TREMULOUS_PACK "TremulousPack"
|
#define TREMULOUS_PACK "TremulousPack"
|
||||||
#define JA_PACK "JAPack"
|
#define JA_PACK "JAPack"
|
||||||
|
#define REACTION_PACK "ReactionPack"
|
||||||
|
|
||||||
class CGameInstall : public Dialog {
|
class CGameInstall : public Dialog {
|
||||||
public:
|
public:
|
||||||
|
@ -231,6 +232,7 @@ public:
|
||||||
GAME_Q2,
|
GAME_Q2,
|
||||||
GAME_TREMULOUS,
|
GAME_TREMULOUS,
|
||||||
GAME_JA,
|
GAME_JA,
|
||||||
|
GAME_REACTION,
|
||||||
GAME_COUNT
|
GAME_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue