Skip to content

Commit

Permalink
Support both old 1.52 and new 1.52
Browse files Browse the repository at this point in the history
Because it's old 1.52 on GOG, new 1.52 on Steam -_-
  • Loading branch information
Yamashi committed Apr 5, 2022
1 parent fb1c80a commit 6c738b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void Image::Initialize()
{{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)},
{{0xB0, 0x99, 0x3F, 0x8E, 0xB2, 0x57, 0x46, 0x41, 0xA3, 0x77, 0x3B, 0x98, 0x97, 0x15, 0xC4, 0xBB}, MakeVersion(1, 52)},
{{0x69, 0x41, 0x44, 0x27, 0xDB, 0x02, 0x65, 0x4B, 0xA5, 0x7F, 0x5B, 0x1C, 0xD6, 0x79, 0x94, 0x32}, MakeVersion(1, 5201)}
{{0x69, 0x41, 0x44, 0x27, 0xDB, 0x02, 0x65, 0x4B, 0xA5, 0x7F, 0x5B, 0x1C, 0xD6, 0x79, 0x94, 0x32}, MakeVersion(1, 52)} // Excluse steam patch
};

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, 5201);
return std::make_tuple(1, 52);
}

static uint64_t MakeVersion(uint32_t aMajor, uint16_t aMinor) noexcept
Expand Down

0 comments on commit 6c738b7

Please sign in to comment.