Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
GU 14 Support
Browse files Browse the repository at this point in the history
  • Loading branch information
xforce committed Apr 12, 2022
1 parent 96fedb2 commit 390d893
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 16 additions & 1 deletion libs/anno-api/src/random_game_functions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,22 @@ bool FindAddresses()

ADDRESSES[READ_INT64_FROM_XML_NODE] = {
[](std::optional<std::string_view> game_file) {
// Game Upate 13.2+
// Game Update 14
try {
auto match =
meow_hook::pattern("E8 ? ? ? ? 66 41 83 FC ? 77 0A", game_file).count(1).get(0);
if (game_file) {
match = match.adjust(RebaseFileOffsetToMemoryAddess(
match.as<uintptr_t>()
- reinterpret_cast<intptr_t>(game_file->data()))
- match.as<uintptr_t>());
}
return match.extract_call();
}
catch (...) {
}

// Game Update 13.2+
try {
auto match =
meow_hook::pattern("E8 ? ? ? ? 4C 8D 76 40", game_file).count(1).get(0);
Expand Down
2 changes: 1 addition & 1 deletion libs/python35/src/version.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// clang-format off
#define VERSION_MAJOR 0
#define VERSION_MINOR 8
#define VERSION_REVISION 5
#define VERSION_REVISION 6

#define STRINGIFY_(s) #s
#define STRINGIFY(s) STRINGIFY_(s)
Expand Down

0 comments on commit 390d893

Please sign in to comment.