diff options
author | EladNLG <e1lad8955@gmail.com> | 2022-07-10 18:22:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-10 16:22:59 +0100 |
commit | 85635ad99dbdfa909341e4138f6fdb0c9bf73bf1 (patch) | |
tree | 03a9198f9be9edc3496b3a72510987373369125e /NorthstarDedicatedTest/modmanager.h | |
parent | 151d678453f3e321fcccf2512e6e2f53436f1469 (diff) | |
download | NorthstarLauncher-85635ad99dbdfa909341e4138f6fdb0c9bf73bf1.tar.gz NorthstarLauncher-85635ad99dbdfa909341e4138f6fdb0c9bf73bf1.zip |
Add dependency constants (#156)v1.9.1-rc4v1.9.1-rc3v1.9.1-rc2v1.9.1
* Fix duplicate script in scripts.rson when 2 mods add a custom script with the same path
Allow mods to force a VPK to load through vpk.json
* Remove unnecessary print
* Fix match predicate using the value instead of the name
* - Add a dependency constant system for use in compile flags
- Remove the duplicate script engine error fix
- Add ClientSq_defconst & ServerSq_defconst
* Format fix
* - Fix access violation
- Separate dependency constants into mod and add checks for conflicts
* - Remove unnecessary comment
* Remove VPK loading for now and allow 2 mods to use the same constant if the mod names match
* Fix bugs
* fix mistake
* fix keyvalues not working with modded files
* simplify code
* Fix formatting
* Remove keyvalues fix
Diffstat (limited to 'NorthstarDedicatedTest/modmanager.h')
-rw-r--r-- | NorthstarDedicatedTest/modmanager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/modmanager.h b/NorthstarDedicatedTest/modmanager.h index 00c0384a..d605eec2 100644 --- a/NorthstarDedicatedTest/modmanager.h +++ b/NorthstarDedicatedTest/modmanager.h @@ -100,6 +100,9 @@ class Mod std::vector<ModRpakEntry> Rpaks; std::unordered_map<std::string, std::string> RpakAliases; // paks we alias to other rpaks, e.g. to load sp_crashsite paks on the map mp_crashsite + // iterated over to create squirrel VM constants depending if a mod exists or not. + // this only exists because we cannot access g_ModManager whilst mods are being loaded for the first time for some reason. + std::unordered_map<std::string, std::string> DependencyConstants; // other stuff @@ -130,6 +133,9 @@ class ModManager public: std::vector<Mod> m_loadedMods; std::unordered_map<std::string, ModOverrideFile> m_modFiles; + // iterated over to create squirrel VM constants depending if a mod exists or not. + // here because constants are global anyways. + std::unordered_map<std::string, std::string> DependencyConstants; public: ModManager(); |