aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/modmanager.h
diff options
context:
space:
mode:
authorNorthstar <northstar@northstar.tf>2022-02-03 22:09:08 -0300
committerBarichello <artur@barichello.me>2022-02-03 22:09:08 -0300
commit75bf194b2fca06de805a7bc025c6dd8379250fa5 (patch)
treec9327ac7921ae80bb2d91381bb7db11b47ca2403 /NorthstarDedicatedTest/modmanager.h
parente9f93ba2e8b9df280aed20131a1606d731d2dbbe (diff)
downloadNorthstarLauncher-75bf194b2fca06de805a7bc025c6dd8379250fa5.tar.gz
NorthstarLauncher-75bf194b2fca06de805a7bc025c6dd8379250fa5.zip
Format project
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.h')
-rw-r--r--NorthstarDedicatedTest/modmanager.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/NorthstarDedicatedTest/modmanager.h b/NorthstarDedicatedTest/modmanager.h
index 445d757e..07e5bffb 100644
--- a/NorthstarDedicatedTest/modmanager.h
+++ b/NorthstarDedicatedTest/modmanager.h
@@ -14,7 +14,7 @@ const std::string COMPILED_ASSETS_SUFFIX = "/runtime/compiled";
struct ModConVar
{
-public:
+ public:
std::string Name;
std::string DefaultValue;
std::string HelpString;
@@ -23,9 +23,9 @@ public:
struct ModScriptCallback
{
-public:
+ public:
// would've liked to make it possible to hook arbitrary codecallbacks, but couldn't find a function that calls some ui ones
- //std::string HookedCodeCallback;
+ // std::string HookedCodeCallback;
ScriptContext Context;
@@ -37,7 +37,7 @@ public:
struct ModScript
{
-public:
+ public:
std::string Path;
std::string RsonRunOn;
@@ -46,7 +46,7 @@ public:
class Mod
{
-public:
+ public:
// runtime stuff
fs::path ModDirectory;
bool Enabled = true;
@@ -84,20 +84,20 @@ public:
bool wasReadSuccessfully = false;
-public:
+ public:
Mod(fs::path modPath, char* jsonBuf);
};
struct ModOverrideFile
{
-public:
+ public:
Mod* owningMod;
fs::path path;
};
class ModManager
{
-private:
+ private:
bool m_hasLoadedMods = false;
bool m_hasEnabledModsCfg;
rapidjson_document m_enabledModsCfg;
@@ -106,11 +106,11 @@ private:
size_t m_hScriptsRsonHash;
size_t m_hPdefHash;
-public:
+ public:
std::vector<Mod> m_loadedMods;
std::unordered_map<std::string, ModOverrideFile> m_modFiles;
-public:
+ public:
ModManager();
void LoadMods();
void UnloadMods();