#pragma once namespace AchievementFix { constexpr std::uint8_t NOP{ 0x90 }; void Install() { REL::Relocation 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); } }