|
|
|
@ -12,7 +12,7 @@ namespace ForceBorderless |
|
|
|
|
std::uint8_t code[] = { 0xB8, 0x01, 0x00, 0x00, 0x00, REL::NOP, REL::NOP }; // mov eax,0x1
|
|
|
|
|
auto version = REL::Module::get().version(); |
|
|
|
|
|
|
|
|
|
if (version >= REL::Version(1, 6, 1130, 0) && version <= REL::Version(1, 6, 1170, 0)) { |
|
|
|
|
if (version >= REL::Version(1, 6, 1130, 0) && version <= REL::Version(1, 6, 1179, 0)) { |
|
|
|
|
logger::info("Initializing borderless mode..."); |
|
|
|
|
REL::Relocation<std::uintptr_t> target{ REL::ID(36547), 0xBEA }; |
|
|
|
|
REL::safe_write(target.address(), code, sizeof(code)); |
|
|
|
|