aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.h
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-01 17:16:42 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-01 17:16:42 +0100
commit51df18abbc0c344b56f88e0a66b6b46d6aca375c (patch)
tree1ce680cb9134273870373134f845633e2c390bde /NorthstarDedicatedTest/modmanager.h
parent1ff8e068e62d095775ef2ae54d3685d89238f28c (diff)
downloadNorthstarLauncher-51df18abbc0c344b56f88e0a66b6b46d6aca375c.tar.gz
NorthstarLauncher-51df18abbc0c344b56f88e0a66b6b46d6aca375c.zip
Revert "small modmanager refactors"
This reverts commit 1ff8e068e62d095775ef2ae54d3685d89238f28c.
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 df3cd1d3..079e1613 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 std::unique_ptr<ModManager> g_ModManager; \ No newline at end of file
+extern ModManager* g_ModManager; \ No newline at end of file