Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

Commit

Permalink
* applied Shamus Jedi Academy patch for Zeroradiant (gamepack will fo…
Browse files Browse the repository at this point in the history
…llow soon)

git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/trunk@324 8a3a26a2-13c4-0310-b231-cf6edde360e5
  • Loading branch information
mattn committed Dec 16, 2008
1 parent 5c902ea commit 71124d1
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def __init__( self ):
# platforms for which to assemble a setup
self.setup_platforms = [ 'local', 'x86', 'x64', 'win32' ]
# paks to assemble in the setup
self.setup_packs = [ 'Q3Pack', 'UrTPack', 'UFOAIPack', 'Q2WPack' ]
self.setup_packs = [ 'Q3Pack', 'UrTPack', 'UFOAIPack', 'Q2WPack', 'JAPack' ]

def __repr__( self ):
return 'config: target=%s config=%s' % ( self.target_selected, self.config_selected )
Expand Down Expand Up @@ -262,7 +262,7 @@ def CheckoutOrUpdate( self, svnurl, path ):

def FetchGamePaks( self, path ):
for pak in self.setup_packs:
if ( pak == 'Q3Pack' or pak == 'UrTPack' or pak == 'UFOAIPack' or pak == 'Q2WPack' ):
if ( pak == 'Q3Pack' or pak == 'UrTPack' or pak == 'UFOAIPack' or pak == 'Q2WPack' or pak == 'JAPack' ):
svnurl = 'https://zerowing.idsoftware.com/svn/radiant.gamepacks/%s/trunk' % pak
self.CheckoutOrUpdate( svnurl, os.path.join( path, 'installs', pak ) )

Expand Down
18 changes: 18 additions & 0 deletions radiant/preferences.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3295,6 +3295,9 @@ void CGameInstall::BuildDialog() {
case GAME_TREMULOUS:
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _("Tremulous") );
break;
case GAME_JA:
gtk_combo_box_append_text( GTK_COMBO_BOX( combo ), _("Jedi Academy and mods") );
break;
}
iGame++;
}
Expand Down Expand Up @@ -3473,6 +3476,18 @@ void CGameInstall::Run() {
fprintf( fg, " basegame=\"base\"\n" );
break;
}
case GAME_JA: {
fprintf( fg, " "TOOLS_ATTRIBUTE"=\"%sinstalls/JAPack/game\"\n", g_strAppPath.GetBuffer() );
fprintf( fg, " prefix=\".ja\"\n" );
Str source = g_strAppPath.GetBuffer();
source += "installs/";
source += JA_PACK;
source += "/install/";
Str dest = m_strEngine.GetBuffer();
CopyTree( source.GetBuffer(), dest.GetBuffer() );
fprintf( fg, " basegame=\"base\"\n" );
break;
}
}
fprintf( fg, "/>\n" );
fclose( fg );
Expand Down Expand Up @@ -3516,6 +3531,9 @@ void CGameInstall::ScanGames() {
if ( stricmp( dirname, TREMULOUS_PACK ) == 0 ) {
m_availGames[ iGame++ ] = GAME_TREMULOUS;
}
if ( stricmp( dirname, JA_PACK ) == 0 ) {
m_availGames[ iGame++ ] = GAME_JA;
}
}
}

2 changes: 2 additions & 0 deletions radiant/preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ select games, copy editing assets and write out configuration files
#define NEXUIZ_PACK "NexuizPack"
#define Q2_PACK "Q2Pack"
#define TREMULOUS_PACK "TremulousPack"
#define JA_PACK "JAPack"

class CGameInstall : public Dialog {
public:
Expand All @@ -229,6 +230,7 @@ class CGameInstall : public Dialog {
GAME_NEXUIZ,
GAME_Q2,
GAME_TREMULOUS,
GAME_JA,
GAME_COUNT
};

Expand Down

0 comments on commit 71124d1

Please sign in to comment.