diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-20 02:14:17 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-07-20 02:14:17 +0100 |
commit | 958d03d2817e312c8eb70234f1c65e4bcbded716 (patch) | |
tree | e7fd88a8e6a5ececdd46abf9b95c7a2e82eb2b98 /NorthstarDedicatedTest/modmanager.h | |
parent | a71d52ffd1531a4a03cb4c87dc56ace4f5cb33c1 (diff) | |
download | NorthstarLauncher-958d03d2817e312c8eb70234f1c65e4bcbded716.tar.gz NorthstarLauncher-958d03d2817e312c8eb70234f1c65e4bcbded716.zip |
add basic mod support with support for mod convars
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.h')
-rw-r--r-- | NorthstarDedicatedTest/modmanager.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/NorthstarDedicatedTest/modmanager.h b/NorthstarDedicatedTest/modmanager.h index 32492283..f2501bed 100644 --- a/NorthstarDedicatedTest/modmanager.h +++ b/NorthstarDedicatedTest/modmanager.h @@ -1,9 +1,15 @@ #pragma once #include <string> #include <vector> +#include <filesystem> + +namespace fs = std::filesystem; + +const fs::path MOD_FOLDER_PATH = "R2Northstar/mods"; class ModConVar { +public: std::string Name; std::string DefaultValue; std::string HelpString; @@ -12,6 +18,7 @@ class ModConVar class ModScriptCallback { +public: std::string HookedCodeCallback; // called before the codecallback is executed @@ -22,8 +29,9 @@ class ModScriptCallback class ModScript { +public: std::string Path; - std::string ScriptsRsonSide; + std::string RsonRunOn; std::vector<ModScriptCallback*> Callbacks; }; @@ -54,6 +62,13 @@ public: std::vector<std::string> Vpks; //std::vector<ModKeyValues*> KeyValues; + + // other stuff + + bool wasReadSuccessfully = false; + +public: + Mod(fs::path modPath, char* jsonBuf); }; class ModManager |