]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/preferences.h
* fixed the texture filters in the ufoai plugin
[xonotic/netradiant.git] / radiant / preferences.h
index 908616adc5eea9bd889d0428daddd25fb8b97253..79df8700aa3a421c65456b2eccc27da240aeaef2 100644 (file)
@@ -180,6 +180,7 @@ public:
   bool mEClassSingleLoad; ///< only load a single eclass definition file
   bool mNoPatch; ///< this game doesn't support patch technology
   Str mCaulkShader; ///< the shader to use for caulking
+  bool quake2; ///< set this to true to get quake2
 
   CGameDescription() { mpDoc = NULL; }
   /*!
@@ -196,22 +197,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];
 };
 
 /*!