Skip to content

Commit

Permalink
Update 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
maximegmd committed Feb 5, 2021
1 parent 615ebe3 commit 8950ba6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 28 deletions.
3 changes: 3 additions & 0 deletions src/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ void Image::Initialize()
static uint8_t s_Guid106[] = { 0x67, 0xFB, 0x96, 0x6B, 0xAA, 0x3D, 0x57, 0x4E, 0x93, 0x8F, 0x1C, 0xC5, 0x85, 0xc6, 0xF5, 0x29 };
static uint8_t s_Guid110[] = { 0xE0, 0xC2, 0x94, 0x64, 0x5C, 0xB4, 0x32, 0x45, 0x95, 0x10, 0x09, 0xA1, 0x0F, 0xB2, 0x53, 0xF8 };
static uint8_t s_Guid111[] = { 0x8C, 0x13, 0x59, 0xA9, 0x7E, 0x6E, 0x49, 0x4F, 0x82, 0xF9, 0xCF, 0x58, 0x71, 0x6B, 0x7D, 0x3A };
static uint8_t s_Guid112[] = { 0x7B, 0x51, 0xF5, 0x2C, 0x87, 0xD0, 0xFF, 0x40, 0x83, 0xE5, 0xAA, 0x6C, 0x07, 0xE9, 0x95, 0x20 };

mem::module mainModule = mem::module::main();

Expand Down Expand Up @@ -58,6 +59,8 @@ void Image::Initialize()
version = MakeVersion(1, 10);
else if (memcmp(&pdb_info->Guid, s_Guid111, 16) == 0)
version = MakeVersion(1, 11);
else if (memcmp(&pdb_info->Guid, s_Guid112, 16) == 0)
version = MakeVersion(1, 12);
else
{
for (auto c : pdb_info->Guid)
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, 11);
return std::make_tuple(1, 12);
}

static uint64_t MakeVersion(uint32_t aMajor, uint16_t aMinor) noexcept
Expand Down
3 changes: 0 additions & 3 deletions src/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ void OptionsInitHook(const Image* apImage);
void DisableIntroMoviesPatch(const Image* apImage);
void DisableVignettePatch(const Image* apImage);
void DisableBoundaryTeleportPatch(const Image* apImage);
void SaveVulnerabilityPatch(const Image* apImage);

static HANDLE s_modInstanceMutex = nullptr;

Expand All @@ -38,8 +37,6 @@ static void Initialize()
if (s_modInstanceMutex == nullptr)
return;

SaveVulnerabilityPatch(&options.GameImage);

// initialize patches
if (options.PatchEnableDebug)
EnableDebugPatch(&options.GameImage);
Expand Down
23 changes: 0 additions & 23 deletions src/patches/SaveVulnerability.cpp

This file was deleted.

2 changes: 1 addition & 1 deletion vendor/RED4ext.SDK

0 comments on commit 8950ba6

Please sign in to comment.