#pragma once namespace AchievementFix { void Install() { REL::Relocation target; if (GetLoadInterface()->RuntimeVersion().minor() > 6 || GetLoadInterface()->RuntimeVersion().patch() >= 1130) { // Checked: 1.6.1130 target = REL::ID(441528); } else { // Checked: 1.5.97, 1.6.640, 1.6.659 target = REL::RelocationID(13647, 13755); } std::uint8_t code[] = { 0xB0, 0x00, 0xC3, REL::NOP }; REL::safe_write(target.address(), code, sizeof(code)); } }