summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ModConfig.h
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/ModConfig.h')
-rw-r--r--Stars45/ModConfig.h70
1 files changed, 35 insertions, 35 deletions
diff --git a/Stars45/ModConfig.h b/Stars45/ModConfig.h
index 9e1f703..48bc58c 100644
--- a/Stars45/ModConfig.h
+++ b/Stars45/ModConfig.h
@@ -1,15 +1,15 @@
/* Project Starshatter 4.5
- Destroyer Studios LLC
- Copyright © 1997-2004. All Rights Reserved.
+ Destroyer Studios LLC
+ Copyright © 1997-2004. All Rights Reserved.
- SUBSYSTEM: Stars.exe
- FILE: ModConfig.h
- AUTHOR: John DiCamillo
+ SUBSYSTEM: Stars.exe
+ FILE: ModConfig.h
+ AUTHOR: John DiCamillo
- OVERVIEW
- ========
- Mod file deployment configuration and manager
+ OVERVIEW
+ ========
+ Mod file deployment configuration and manager
*/
@@ -32,44 +32,44 @@ class ModCampaign;
class ModConfig
{
public:
- static const char* TYPENAME() { return "ModConfig"; }
+ static const char* TYPENAME() { return "ModConfig"; }
- ModConfig();
- ~ModConfig();
+ ModConfig();
+ ~ModConfig();
- int operator == (const ModConfig& cfg) const { return this == &cfg; }
+ int operator == (const ModConfig& cfg) const { return this == &cfg; }
- static void Initialize();
- static void Close();
- static ModConfig* GetInstance();
+ static void Initialize();
+ static void Close();
+ static ModConfig* GetInstance();
- void Load();
- void Save();
- void FindMods();
+ void Load();
+ void Save();
+ void FindMods();
- bool IsDeployed(const char* name);
- void Deploy();
- void Undeploy();
- void Redeploy();
+ bool IsDeployed(const char* name);
+ void Deploy();
+ void Undeploy();
+ void Redeploy();
- // these methods change the configuration only
- // you must Redeploy() to have them take effect:
+ // these methods change the configuration only
+ // you must Redeploy() to have them take effect:
- void EnableMod(const char* name);
- void DisableMod(const char* name);
- void IncreaseModPriority(int mod_index);
- void DecreaseModPriority(int mod_index);
+ void EnableMod(const char* name);
+ void DisableMod(const char* name);
+ void IncreaseModPriority(int mod_index);
+ void DecreaseModPriority(int mod_index);
- List<Text>& EnabledMods() { return enabled; }
- List<Text>& DisabledMods() { return disabled; }
- List<ModInfo>& GetModInfoList() { return mods; }
+ List<Text>& EnabledMods() { return enabled; }
+ List<Text>& DisabledMods() { return disabled; }
+ List<ModInfo>& GetModInfoList() { return mods; }
- ModInfo* GetModInfo(const char* filename);
+ ModInfo* GetModInfo(const char* filename);
private:
- List<Text> enabled;
- List<Text> disabled;
- List<ModInfo> mods;
+ List<Text> enabled;
+ List<Text> disabled;
+ List<ModInfo> mods;
};
#endif ModConfig_h \ No newline at end of file