Skip to content

Commit

Permalink
updat for 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
jackhumbert committed Mar 1, 2024
1 parent 46346c7 commit f0b055c
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 21 deletions.
24 changes: 12 additions & 12 deletions compile_commands.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion deps/cpcmake
2 changes: 1 addition & 1 deletion deps/red4ext.sdk
Submodule red4ext.sdk updated 45 files
+1 −1 CMakeLists.txt
+2 −1 cmake/GameVersions.json
+0 −4 cmake/pch.hpp.in
+0 −55,056 include/RED4ext/Addresses-VFT.hpp
+0 −205 include/RED4ext/Addresses.hpp
+1 −0 include/RED4ext/Api/Runtime.hpp
+2 −0 include/RED4ext/Api/Version.hpp
+2 −1 include/RED4ext/Api/v0/Runtime.hpp
+1 −0 include/RED4ext/Api/v0/Version.hpp
+5 −5 include/RED4ext/CNamePool-inl.hpp
+8 −8 include/RED4ext/CString-inl.hpp
+0 −1 include/RED4ext/Common.hpp
+198 −0 include/RED4ext/Detail/AddressHashes.hpp
+2 −2 include/RED4ext/DynArray.hpp
+2 −2 include/RED4ext/GameEngine-inl.hpp
+2 −2 include/RED4ext/Handle.hpp
+6 −6 include/RED4ext/ISerializable-inl.hpp
+11 −11 include/RED4ext/JobQueue-inl.hpp
+8 −8 include/RED4ext/Memory/Allocators.hpp
+2 −2 include/RED4ext/Memory/SharedPtr.hpp
+2 −2 include/RED4ext/Memory/Vault-inl.hpp
+3 −3 include/RED4ext/RTTISystem-inl.hpp
+30 −30 include/RED4ext/RTTITypes-inl.hpp
+3 −3 include/RED4ext/RTTITypes.hpp
+67 −0 include/RED4ext/Relocation-inl.hpp
+79 −10 include/RED4ext/Relocation.hpp
+2 −2 include/RED4ext/ResourceDepot-inl.hpp
+2 −2 include/RED4ext/ResourceLoader-inl.hpp
+7 −7 include/RED4ext/ResourceLoader.hpp
+1 −1 include/RED4ext/Scripting/CProperty.hpp
+5 −5 include/RED4ext/Scripting/Functions-inl.hpp
+3 −3 include/RED4ext/Scripting/Functions.hpp
+3 −3 include/RED4ext/Scripting/IScriptable-inl.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/cp/PlayerSystem.hpp
+1 −1 include/RED4ext/Scripting/Natives/Generated/quest/ICharacterConditionType.hpp
+13 −13 include/RED4ext/Scripting/Natives/gameIAttachmentSlotsListener.hpp
+23 −21 include/RED4ext/Scripting/Natives/gameITransactionSystem.hpp
+2 −2 include/RED4ext/Scripting/OpcodeHandlers-inl.hpp
+2 −2 include/RED4ext/Scripting/Stack-inl.hpp
+2 −2 include/RED4ext/SortedArray.hpp
+3 −3 include/RED4ext/SystemUpdate-inl.hpp
+4 −4 include/RED4ext/TweakDB-inl.hpp
+1 −1 include/RED4ext/Version.hpp
+2 −2 scripts/patterns.py
+6 −0 src/Relocation.cpp
2 changes: 1 addition & 1 deletion deps/red_lib
3 changes: 0 additions & 3 deletions src/red4ext/Addresses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@
#define ZOLTAN_EXPAND_THEN_STRINGISE(N) ZOLTAN_STRINGISE(N)
#define __LINE_STR__ ZOLTAN_EXPAND_THEN_STRINGISE(__LINE__)

#ifndef ReleaseScriptData_Addr
#define ReleaseScriptData_Addr 0x1005F4
#endif
7 changes: 4 additions & 3 deletions src/red4ext/Hooks/ReleaseScriptData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
#include "ModSettings.hpp"
#include <Registrar.hpp>

/// @hash 3993832650
void *__fastcall ReleaseScriptData(ModSettings::ScriptData *scriptData);
// @hash 3993832650
// void *__fastcall ReleaseScriptData(ModSettings::ScriptData *scriptData);
// RED4ext::UniversalRelocFunc<void (*)(ModSettings::ScriptData *)> ReleaseScriptData(3993832650);

REGISTER_HOOK(void *__fastcall, ReleaseScriptData, ModSettings::ScriptData *scriptData) {
REGISTER_HOOK_HASH(void *, 3993832650, ReleaseScriptData, ModSettings::ScriptData *scriptData) {
ModSettings::ModSettings::ProcessScriptData(scriptData);
auto og = ReleaseScriptData_Original(scriptData);
return og;
Expand Down

0 comments on commit f0b055c

Please sign in to comment.