diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2023-07-07 16:11:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-07 17:11:43 +0200 |
commit | 9f9e3a906f2792ee518c7d9910d70607469f80ae (patch) | |
tree | 0716bc0639a181c1a390eb3ca3d3e54a8c8bbf9d /NorthstarDLL/mods/modmanager.h | |
parent | 513705e33f59273c5b463c0da874a0066e8d0589 (diff) | |
download | NorthstarLauncher-1.16.3-rc1.tar.gz NorthstarLauncher-1.16.3-rc1.zip |
Improve logging for mods (#445)v1.16.3-rc2v1.16.3-rc1v1.16.3v1.16.2-rc1v1.16.2v1.16.1-rc1v1.16.11.16.X
- Removes the log spam of "changing mod search path"
- Logs mods as they are loaded, alongside their ConVars, Scripts, ConCommands, etc.
- Warns in the console about errors in the mod.json instead of silently skipping things
Diffstat (limited to 'NorthstarDLL/mods/modmanager.h')
-rw-r--r-- | NorthstarDLL/mods/modmanager.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/NorthstarDLL/mods/modmanager.h b/NorthstarDLL/mods/modmanager.h index c25c95ba..33f4ceac 100644 --- a/NorthstarDLL/mods/modmanager.h +++ b/NorthstarDLL/mods/modmanager.h @@ -126,6 +126,14 @@ class Mod public: Mod(fs::path modPath, char* jsonBuf); + + private: + void ParseConVars(rapidjson_document& json); + void ParseConCommands(rapidjson_document& json); + void ParseScripts(rapidjson_document& json); + void ParseLocalization(rapidjson_document& json); + void ParseDependencies(rapidjson_document& json); + void ParseInitScript(rapidjson_document& json); }; struct ModOverrideFile |