Skip to content

Commit

Permalink
1.63 hotfix 1
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegmd committed Jun 23, 2023
1 parent 5fb59b2 commit 775b0b4
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 19 deletions.
1 change: 1 addition & 0 deletions src/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ void Image::Initialize()
{{0xD6, 0xFF, 0xA3, 0xE9, 0xCA, 0x20, 0x9A, 0x4F, 0xA6, 0x2A, 0x7B, 0x8B, 0x33, 0xF7, 0x9D, 0x02}, MakeVersion(1, 6201)},
{{0x1C, 0xF0, 0xFC, 0x79, 0x23, 0x64, 0x67, 0x49, 0xBC, 0x54, 0xBA, 0x1E, 0xAC, 0xBC, 0xEB, 0xDA}, MakeVersion(1, 6202)},
{{0x50, 0xd2, 0x43, 0xd9, 0x99, 0x74, 0x1d, 0x46, 0xaf, 0x27, 0xdc, 0x1f, 0x4d, 0x81, 0x43, 0x9f}, MakeVersion(1, 63)},
{{0x26, 0xd4, 0xd1, 0xf8, 0x2a, 0x64, 0x77, 0x4e, 0xa2, 0xde, 0x12, 0x85, 0xce, 0x8a, 0x08, 0x05}, MakeVersion(1, 6301)},
};

mem::module mainModule = mem::module::main();
Expand Down
2 changes: 1 addition & 1 deletion src/Image.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ struct Image
{
void Initialize();

static std::tuple<uint32_t, uint16_t> GetSupportedVersion() noexcept { return std::make_tuple(1, 63); }
static std::tuple<uint32_t, uint16_t> GetSupportedVersion() noexcept { return std::make_tuple(1, 6301); }

static uint64_t MakeVersion(const uint32_t acMajor, const uint16_t acMinor) noexcept { return static_cast<uint64_t>(acMajor) << 32 | static_cast<uint64_t>(acMinor) << 16; }

Expand Down
34 changes: 17 additions & 17 deletions src/reverse/Addresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,28 @@ constexpr uintptr_t CInitializationState_OnTick = 0x140A83790 - ImageBase; // 48
#pragma endregion

#pragma region CPatches
constexpr uintptr_t CPatches_BoundaryTeleport = 0x141B41410 - ImageBase; // 48 8B C4 55 53 41 54 48 8D A8 ? ? ? ? 48 81 EC ? ? ? ? 48 89 70 10 48 8D 59 48, expected: 1, index: 0
constexpr uintptr_t CPatches_BoundaryTeleport = 0x141B41550 - ImageBase; // 48 8B C4 55 53 41 54 48 8D A8 ? ? ? ? 48 81 EC ? ? ? ? 48 89 70 10 48 8D 59 48, expected: 1, index: 0
constexpr uintptr_t CPatches_IntroMovie = 0x140209220 - ImageBase; // 48 89 5C 24 08 57 48 83 EC 20 48 8B 44 24 50 48 8B D9 48 89 41 08, expected: 1, index: 0
constexpr uintptr_t CPatches_Vignette = 0x14118FB50 - ImageBase; // 48 8B 41 30 48 83 78 68 00 74, expected: 1, index: 0
constexpr uintptr_t CPatches_MinimapFlicker = 0x1425C220D - ImageBase; // 83 79 2C 00 48 8B F2 4C, expected: 1, index: 0
constexpr uintptr_t CPatches_OptionsInit = 0x142C31480 - ImageBase; // 40 53 48 83 EC 40 48 8B D9 48 8D 4C 24 20 E8 ? ? ? ? E8 ? ? ? ? 4C 8B 43 08, expected: 1, index: 0
constexpr uintptr_t CPatches_SkipStartScreen = 0x142A66790 - ImageBase; // 74 5F E8 ? ? ? ? 48 8D 4C 24 20 8B D8 E8 ? ? ? ? 48 8B C8 8B D3 E8, expected: 2, index: 1
constexpr uintptr_t CPatches_AmdSMT = 0x142BDA10B - ImageBase; // 75 2D 33 C9 B8 01 00 00 00 0F A2 8B C8 C1 F9 08, expected: 1, index: 0
constexpr uintptr_t CPatches_MinimapFlicker = 0x1425C233D - ImageBase; // 83 79 2C 00 48 8B F2 4C, expected: 1, index: 0
constexpr uintptr_t CPatches_OptionsInit = 0x142C315E0 - ImageBase; // 40 53 48 83 EC 40 48 8B D9 48 8D 4C 24 20 E8 ? ? ? ? E8 ? ? ? ? 4C 8B 43 08, expected: 1, index: 0
constexpr uintptr_t CPatches_SkipStartScreen = 0x142A668F0 - ImageBase; // 74 5F E8 ? ? ? ? 48 8D 4C 24 20 8B D8 E8 ? ? ? ? 48 8B C8 8B D3 E8, expected: 2, index: 1
constexpr uintptr_t CPatches_AmdSMT = 0x142BDA26B - ImageBase; // 75 2D 33 C9 B8 01 00 00 00 0F A2 8B C8 C1 F9 08, expected: 1, index: 0
#pragma endregion

#pragma region CPhotoMode
constexpr uintptr_t CPhotoMode_SetRecordID = 0x142E05660 - ImageBase; // 48 8B C4 55 57 48 8D 68 A1 48 81 EC 98 00 00 00 48 89 58 08 48 8B D9 48 89 70 18 48 8D 4D 27 48, expected: 1, index: 0
constexpr uintptr_t CPhotoMode_SetRecordID = 0x142E057C0 - ImageBase; // 48 8B C4 55 57 48 8D 68 A1 48 81 EC 98 00 00 00 48 89 58 08 48 8B D9 48 89 70 18 48 8D 4D 27 48, expected: 1, index: 0
#pragma endregion

#pragma region CRenderGlobal
constexpr uintptr_t CRenderGlobal_InstanceOffset = 0x144E16FC0 - ImageBase; // 48 89 5C 24 08 48 89 6C 24 18 48 89 74 24 20 57 41 56 41 57 48 83 EC 30 8B 01 4C 8B F9 48, expected: 1, index: 0, offset: 41
constexpr uintptr_t CRenderGlobal__DoNotUse_RenderQueueOffset = 0x151FAD739 - ImageBase; // 49 39 29 0F 84 ? ? ? ? 41 39 69 24 0F 84 ? ? ? ? 49 8B 95, expected: 1, index: 0, offset: 0
constexpr uintptr_t CRenderGlobal_Resize = 0x142D22050 - ImageBase; // 44 88 4C 24 20 44 89 44 24 18 89 54 24 10 89 4C, expected: 1, index: 0
constexpr uintptr_t CRenderGlobal_Shutdown = 0x142D0BAE0 - ImageBase; // 48 89 6C 24 20 41 56 48 83 EC 20 48 8D 05, expected: 1, index: 0
constexpr uintptr_t CRenderGlobal_InstanceOffset = 0x144E167E0 - ImageBase; // 48 89 5C 24 08 48 89 6C 24 18 48 89 74 24 20 57 41 56 41 57 48 83 EC 30 8B 01 4C 8B F9 48, expected: 1, index: 0, offset: 41
constexpr uintptr_t CRenderGlobal__DoNotUse_RenderQueueOffset = 0x151FA43A9 - ImageBase; // 49 39 29 0F 84 ? ? ? ? 41 39 69 24 0F 84 ? ? ? ? 49 8B 95, expected: 1, index: 0, offset: 0
constexpr uintptr_t CRenderGlobal_Resize = 0x142D18CC0 - ImageBase; // 44 88 4C 24 20 44 89 44 24 18 89 54 24 10 89 4C, expected: 1, index: 0
constexpr uintptr_t CRenderGlobal_Shutdown = 0x142D02750 - ImageBase; // 48 89 6C 24 20 41 56 48 83 EC 20 48 8D 05, expected: 1, index: 0
#pragma endregion

#pragma region CRenderNode_Present
constexpr uintptr_t CRenderNode_Present_DoInternal = 0x142D24610 - ImageBase; // 48 89 5C 24 08 48 89 6C 24 18 48 89 74 24 20 57 41 56 41 57 48 83 EC 30 8B 01 4C 8B F9 48, expected: 1, index: 0
constexpr uintptr_t CRenderNode_Present_DoInternal = 0x142D1B280 - ImageBase; // 48 89 5C 24 08 48 89 6C 24 18 48 89 74 24 20 57 41 56 41 57 48 83 EC 30 8B 01 4C 8B F9 48, expected: 1, index: 0
#pragma endregion

#pragma region CRunningState
Expand All @@ -64,7 +64,7 @@ constexpr uintptr_t CScript_AllocateFunction = 0x1401B6290 - ImageBase; // BA B8
constexpr uintptr_t CScript_Log = 0x1401F7DE0 - ImageBase; // 40 53 48 83 EC ? 48 8D 4C 24 20 48 8B DA E8 ? ? ? ? 33 D2 48 8D 4C 24 40 E8, expected: 1, index: 0
constexpr uintptr_t CScript_ToStringDEBUG = 0x140BE8820 - ImageBase; // 48 89 5C 24 08 57 48 83 EC 20 FE 42 62 4C 8D 15 ? ? ? ? 33 C9 33 C0, expected: 4, index: 2
constexpr uintptr_t CScript_LogChannel = 0x1401F7E80 - ImageBase; // 4C 8B DC 49 89 5B 08 49 89 73 18 57 48 83 EC 70 48 8B 02 ? ? ? ? ? ? ? FE 42 62 4D 8D 43 10 33 FF 45 33 C9 49 89 7B 10 48 8B DA 48 89 7A, expected: 1, index: 0
constexpr uintptr_t CScript_TDBIDConstructorDerive = 0x142C2A4F0 - ImageBase; // 40 53 48 83 EC 30 33 C0 4C 89 44 24 20 48 8B DA, expected: 1, index: 0
constexpr uintptr_t CScript_TDBIDConstructorDerive = 0x142C2A650 - ImageBase; // 40 53 48 83 EC 30 33 C0 4C 89 44 24 20 48 8B DA, expected: 1, index: 0
constexpr uintptr_t CScript_TranslateBytecode = 0x1402851A0 - ImageBase; // 4C 8B DC 55 53 57 41 55 49 8D 6B A1 48 81 EC 98 00 00 00 48 8B 1A 4C 8B E9 8B 42 0C 48 8D 3C C3, expected: 1, index: 0
constexpr uintptr_t CScript_TweakDBLoad = 0x140BE6B50 - ImageBase; // 48 89 5C 24 18 55 57 41 56 48 8B EC 48 83 EC 70 48 8B D9 45 33 F6 48 8D, expected: 1, index: 0
constexpr uintptr_t CScript_RegisterMemberFunction = 0x140214E50 - ImageBase; // 48 89 5C 24 08 57 48 83 EC 20 49 8B C1 4D 8B D0 44 8B 4C 24 58 48 8B DA 41 83 C9 03, expected: 1, index: 0
Expand All @@ -80,14 +80,14 @@ constexpr uintptr_t CWinapi_ClipToCenter = 0x14079B530 - ImageBase; // 48 89 5C

#pragma region gameIGameSystem
constexpr uintptr_t gameIGameSystem_Constructor = 0x140B08F76 - ImageBase; // 48 8B D9 E8 ? ? ? ? 48 8D 05 ? ? ? ? 48 C7 43 40 00 00 00 00, expected: 2, index: 0
constexpr uintptr_t gameIGameSystem_Initialize = 0x142E07080 - ImageBase; // 48 89 5C 24 18 48 89 6C 24 20 57 48 83 EC 30 48 8B 42 78, expected: 1, index: 0
constexpr uintptr_t gameIGameSystem_UnInitialize = 0x142E05CF0 - ImageBase; // 40 53 48 83 EC 20 48 8B D9 E8 ? ? ? ? 33 C0 48 89 43 50 48 89 43 48, expected: 1, index: 0
constexpr uintptr_t gameIGameSystem_Spawn = 0x142E08280 - ImageBase; // 48 89 5C 24 18 55 56 41 54 41 56 41 57 48 8D 6C 24 90 48 81 EC 70 01 00 00 48 83 79 50 00 49 8B, expected: 1, index: 0
constexpr uintptr_t gameIGameSystem_Despawn = 0x142E05D20 - ImageBase; // 48 89 5C 24 10 48 89 6C 24 18 56 57 41 54 41 56 41 57 48 83 EC 50 4C 8B F9 0F 57 C0 48 83 C1 41, expected: 1, index: 0
constexpr uintptr_t gameIGameSystem_Initialize = 0x142E071E0 - ImageBase; // 48 89 5C 24 18 48 89 6C 24 20 57 48 83 EC 30 48 8B 42 78, expected: 1, index: 0
constexpr uintptr_t gameIGameSystem_UnInitialize = 0x142E05E50 - ImageBase; // 40 53 48 83 EC 20 48 8B D9 E8 ? ? ? ? 33 C0 48 89 43 50 48 89 43 48, expected: 1, index: 0
constexpr uintptr_t gameIGameSystem_Spawn = 0x142E083E0 - ImageBase; // 48 89 5C 24 18 55 56 41 54 41 56 41 57 48 8D 6C 24 90 48 81 EC 70 01 00 00 48 83 79 50 00 49 8B, expected: 1, index: 0
constexpr uintptr_t gameIGameSystem_Despawn = 0x142E05E80 - ImageBase; // 48 89 5C 24 10 48 89 6C 24 18 56 57 41 54 41 56 41 57 48 83 EC 50 4C 8B F9 0F 57 C0 48 83 C1 41, expected: 1, index: 0
constexpr uintptr_t gameIGameSystem_SpawnCallback = 0x141105540 - ImageBase; // 48 89 5C 24 18 48 89 6C 24 20 56 57 41 56 48 83 EC 70 48 8B F1 48 8B EA 48 83 C1 48 E8, expected: 1, index: 0
#pragma endregion

#pragma region PlayerSystem
constexpr uintptr_t PlayerSystem_OnPlayerSpawned = 0x1427352C0 - ImageBase; // 48 8B C4 4C 89 48 20 55 56 57 48 8B EC 48 81 EC 80 00 00 00, expected: 1, index: 0
constexpr uintptr_t PlayerSystem_OnPlayerSpawned = 0x1427353F0 - ImageBase; // 48 8B C4 4C 89 48 20 55 56 57 48 8B EC 48 81 EC 80 00 00 00, expected: 1, index: 0
#pragma endregion
} // namespace CyberEngineTweaks::Addresses
2 changes: 1 addition & 1 deletion vendor/RED4ext.SDK
Submodule RED4ext.SDK updated 34 files
+1 −1 .github/workflows/build.yml
+17 −17 include/RED4ext/Addresses.hpp
+2 −0 include/RED4ext/Api/Runtime.hpp
+3 −1 include/RED4ext/Api/v0/Runtime.hpp
+13 −8 include/RED4ext/Callback.hpp
+14 −1 include/RED4ext/Dump/Reflection-inl.hpp
+10 −0 include/RED4ext/ResourceReference.hpp
+0 −23 include/RED4ext/Scripting/Natives/Generated/BaseGameEngine.hpp
+0 −22 include/RED4ext/Scripting/Natives/Generated/CBaseEngine.hpp
+0 −23 include/RED4ext/Scripting/Natives/Generated/CGameEngine.hpp
+1 −1 include/RED4ext/Scripting/Natives/Generated/DebugGameEngine.hpp
+1 −1 include/RED4ext/Scripting/Natives/Generated/FunctionalTestsGameEngine.hpp
+1 −1 include/RED4ext/Scripting/Natives/Generated/HeadlessGameEngine.hpp
+1 −1 include/RED4ext/Scripting/Natives/Generated/InternalFunctionalTestsGameEngine.hpp
+0 −18 include/RED4ext/Scripting/Natives/Generated/UpdateBucketEnum.hpp
+1 −1 include/RED4ext/Scripting/Natives/Generated/game/ItemObject.hpp
+3 −3 include/RED4ext/Scripting/Natives/Generated/gsm/BaseRequestsHandler.hpp
+27 −0 include/RED4ext/Scripting/Natives/Generated/ink/AdditionalContentPurchaseCallback.hpp
+27 −0 include/RED4ext/Scripting/Natives/Generated/ink/AdditionalContentStatusUpdateCallback.hpp
+5 −3 include/RED4ext/Scripting/Natives/Generated/ink/CursorInfo.hpp
+8 −4 include/RED4ext/Scripting/Natives/Generated/ink/ISystemRequestsHandler.hpp
+35 −0 include/RED4ext/Scripting/Natives/Generated/ink/LanguageSpecificImagData.hpp
+5 −7 include/RED4ext/Scripting/Natives/Generated/ink/LanguageSpecificImageController.hpp
+1 −1 include/RED4ext/Scripting/Natives/Generated/quest/ICharacterConditionType.hpp
+1 −0 include/RED4ext/Scripting/Natives/Generated/quest/InjectLootOperationType.hpp
+4 −2 include/RED4ext/Scripting/Natives/Generated/quest/InjectLoot_NodeType.hpp
+6 −4 include/RED4ext/Scripting/Natives/Generated/quest/InjectLoot_NodeTypeParams.hpp
+6 −5 include/RED4ext/Scripting/Natives/Generated/quest/InjectLoot_NodeTypeParams_OperationData.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/quest/QuestsSystem.hpp
+4 −3 include/RED4ext/Scripting/Natives/Generated/rend/ScreenshotMode.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/services/GameServices.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/services/GameServicesGalaxy.hpp
+2 −2 include/RED4ext/Scripting/Natives/Generated/services/GameServicesWin.hpp
+5 −5 src/Scripting/Natives.cpp

0 comments on commit 775b0b4

Please sign in to comment.