]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
* added UFOAI to gamepack configuration code
authormattn <mattn@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Sun, 16 Mar 2008 20:54:29 +0000 (20:54 +0000)
committermattn <mattn@8a3a26a2-13c4-0310-b231-cf6edde360e5>
Sun, 16 Mar 2008 20:54:29 +0000 (20:54 +0000)
git-svn-id: https://zerowing.idsoftware.com/svn/radiant/GtkRadiant/branches/ZeroRadiant@224 8a3a26a2-13c4-0310-b231-cf6edde360e5

radiant/preferences.cpp
radiant/preferences.h

index 88fb4fe450c30e2ab4ff4e78afbdd974dd134647..2f6a45c466f2a5575416b2c1e7172bdd647f57b1 100644 (file)
@@ -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 );
        }
index 79df8700aa3a421c65456b2eccc27da240aeaef2..8a75b281a7afcde9e587390d6319ede4e6cda6b6 100644 (file)
@@ -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
        };