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/squirrel.cpp | |
parent | 151d678453f3e321fcccf2512e6e2f53436f1469 (diff) | |
download | NorthstarLauncher-1.9.1-rc2.tar.gz NorthstarLauncher-1.9.1-rc2.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/squirrel.cpp')
-rw-r--r-- | NorthstarDedicatedTest/squirrel.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/squirrel.cpp b/NorthstarDedicatedTest/squirrel.cpp index d0d54a3a..a0680d9a 100644 --- a/NorthstarDedicatedTest/squirrel.cpp +++ b/NorthstarDedicatedTest/squirrel.cpp @@ -72,6 +72,9 @@ sq_pushboolType ServerSq_pushbool; sq_pusherrorType ClientSq_pusherror; sq_pusherrorType ServerSq_pusherror; +sq_defconst ClientSq_defconst; +sq_defconst ServerSq_defconst; + sq_pushAssetType ClientSq_pushAsset; sq_pushAssetType ServerSq_pushAsset; @@ -148,6 +151,8 @@ void InitialiseClientSquirrel(HMODULE baseAddress) ClientSq_sq_get = (sq_getType)((char*)baseAddress + 0x7C30); + ClientSq_defconst = (sq_defconst)((char*)baseAddress + 0x12120); + ENABLER_CREATEHOOK( hook, (char*)baseAddress + 0x26130, @@ -203,6 +208,8 @@ void InitialiseServerSquirrel(HMODULE baseAddress) ServerSq_sq_get = (sq_getType)((char*)baseAddress + 0x7C00); + ServerSq_defconst = (sq_defconst)((char*)baseAddress + 0x1F550); + ENABLER_CREATEHOOK( hook, (char*)baseAddress + 0x1FE90, |