Skip to content

Commit

Permalink
Add 1.52
Browse files Browse the repository at this point in the history
  • Loading branch information
Yamashi committed Mar 22, 2022
1 parent 74013d9 commit acdbb52
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ void Image::Initialize()
{{0x8E, 0x08, 0xA2, 0x5B, 0xC7, 0xDD, 0xD5, 0x48, 0xB4, 0xE9, 0x90, 0x38, 0x15, 0xB8, 0xBB, 0xEB}, MakeVersion(1, 31)},
{{0x5B, 0x6C, 0xAD, 0x70, 0x67, 0x2b, 0x54, 0x40, 0xBC, 0x45, 0x06, 0x60, 0x44, 0xA9, 0x12, 0x61}, MakeVersion(1, 50)},
{{0x73, 0x05, 0x22, 0x1B, 0x23, 0x65, 0x14, 0x4E, 0xB0, 0xE0, 0xAE, 0xC3, 0x4E, 0xD6, 0x4F, 0xBF}, MakeVersion(1, 5001)},
{{0xDB, 0xE2, 0xBB, 0x94, 0x3B, 0x18, 0xB0, 0x4C, 0xAB, 0x56, 0xB6, 0xB8, 0x9A, 0x7E, 0xD2, 0xA5}, MakeVersion(1, 5002)}
{{0xDB, 0xE2, 0xBB, 0x94, 0x3B, 0x18, 0xB0, 0x4C, 0xAB, 0x56, 0xB6, 0xB8, 0x9A, 0x7E, 0xD2, 0xA5}, MakeVersion(1, 5002)},
{{0xB0, 0x99, 0x3F, 0x8E, 0xB2, 0x57, 0x46, 0x41, 0xA3, 0x77, 0x3B, 0x98, 0x97, 0x15, 0xC4, 0xBB}, MakeVersion(1, 52)}
};

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 @@ -6,7 +6,7 @@ struct Image

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

static uint64_t MakeVersion(uint32_t aMajor, uint16_t aMinor) noexcept
Expand Down
2 changes: 0 additions & 2 deletions src/scripting/LuaVM_Hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,6 @@ uint64_t LuaVM::HookTweakDBLoad(uintptr_t aThis, uintptr_t aParam)

void LuaVM::Hook(Options& aOptions)
{
auto& gameImage = aOptions.GameImage;

{
RED4ext::RelocPtr<uint8_t> func(CyberEngineTweaks::Addresses::CScript_Log);
uint8_t* pLocation = func.GetAddr();
Expand Down
2 changes: 1 addition & 1 deletion vendor/RED4ext.SDK

0 comments on commit acdbb52

Please sign in to comment.