parent
9d84b0bb74
commit
8a4e3ef71b
4 changed files with 31 additions and 3 deletions
Binary file not shown.
@ -1,3 +1,4 @@ |
||||
FlatMapMarkers = true |
||||
StayAtSystemPage = true |
||||
MapMarkerPlacementFixes = true |
||||
AchievementFix = true |
||||
|
@ -0,0 +1,20 @@ |
||||
#pragma once |
||||
|
||||
namespace AchievementFix |
||||
{ |
||||
constexpr std::uint8_t NOP{ 0x90 }; |
||||
|
||||
void Install() |
||||
{ |
||||
REL::Relocation<std::uintptr_t> target; |
||||
|
||||
if (GetLoadInterface()->RuntimeVersion().minor() > 6 || GetLoadInterface()->RuntimeVersion().patch() >= 1130) { |
||||
target = REL::ID(441528); |
||||
} else { |
||||
target = REL::RelocationID(13647, 13755); |
||||
} |
||||
|
||||
std::uint8_t code[] = { 0xB0, 0x00, 0xC3, NOP }; |
||||
REL::safe_write(target.address(), code, 4); |
||||
} |
||||
} |
Loading…
Reference in new issue