added file copy tree for the game packs - lists supported games
[xonotic/netradiant.git] / radiant / preferences.h
index 908616adc5eea9bd889d0428daddd25fb8b97253..dfc1be5c7424b839f56b5b0edca517739123b15e 100644 (file)
@@ -196,22 +196,33 @@ public:
 /*!
 select games, copy editing assets and write out configuration files
  */
+
+#define Q3_PACK "Q3Pack"
+#define URT_PACK "UrTPack"
+
 class CGameInstall : public Dialog {
 public:
+       CGameInstall();
+       void ScanGames();
        void Run();
        void BuildDialog();
 
        enum gameType_e {
-               GAME_Q3,
+               GAME_NONE = 0,
+               GAME_Q3 = 1,
                GAME_URT,
-               GAME_WARSOW
+               GAME_WARSOW,
+               GAME_COUNT
        };
 
 protected:
-       Str m_strName;
-       Str     m_strMod;
-       Str m_strEngine;
-       int m_nComboSelect;
+       Str             m_strName;
+       Str             m_strMod;
+       Str             m_strEngine;
+       int             m_nComboSelect;
+
+       // maps from m_nComboSelect to the games
+       int     m_availGames[GAME_COUNT];
 };
 
 /*!