aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-30 21:46:08 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-09-30 21:46:08 +0100
commit1ff8e068e62d095775ef2ae54d3685d89238f28c (patch)
tree5aedcc16f144c2225d7398dd1f19b4f11cd467c1 /NorthstarDedicatedTest/modmanager.h
parent8b93a09f5b12ce7967df5824794ed24b3ff31cdc (diff)
downloadNorthstarLauncher-1ff8e068e62d095775ef2ae54d3685d89238f28c.tar.gz
NorthstarLauncher-1ff8e068e62d095775ef2ae54d3685d89238f28c.zip
small modmanager refactors
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.h')
-rw-r--r--NorthstarDedicatedTest/modmanager.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/NorthstarDedicatedTest/modmanager.h b/NorthstarDedicatedTest/modmanager.h
index 079e1613..df3cd1d3 100644
--- a/NorthstarDedicatedTest/modmanager.h
+++ b/NorthstarDedicatedTest/modmanager.h
@@ -40,7 +40,7 @@ public:
std::string Path;
std::string RsonRunOn;
- std::vector<ModScriptCallback*> Callbacks;
+ std::vector<ModScriptCallback> Callbacks;
};
class Mod
@@ -67,9 +67,9 @@ public:
int LoadPriority;
// custom scripts used by the mod
- std::vector<ModScript*> Scripts;
+ std::vector<ModScript> Scripts;
// convars created by the mod
- std::vector<ModConVar*> ConVars;
+ std::vector<ModConVar> ConVars;
// custom localisation files created by the mod
std::vector<std::string> LocalisationFiles;
@@ -97,8 +97,8 @@ public:
class ModManager
{
public:
- std::vector<Mod*> m_loadedMods;
- std::unordered_map<std::string, ModOverrideFile*> m_modFiles;
+ std::vector<Mod> m_loadedMods;
+ std::unordered_map<std::string, ModOverrideFile> m_modFiles;
public:
ModManager();
@@ -113,4 +113,4 @@ public:
void InitialiseModManager(HMODULE baseAddress);
-extern ModManager* g_ModManager; \ No newline at end of file
+extern std::unique_ptr<ModManager> g_ModManager; \ No newline at end of file