Compare commits

...

3 Commits

Author SHA1 Message Date
07dde01537 Borderless mode works on 1.6.1179 2024-02-29 00:43:36 +01:00
01515e375e Added Address Library for 1.6.1179 2024-02-29 00:19:37 +01:00
bdde69bf7c Added enderal.ico 2024-02-28 22:48:52 +01:00
3 changed files with 7 additions and 1 deletions

BIN
SKSE/Plugins/versionlib-1-6-1179-0.bin (Stored with Git LFS) Normal file

Binary file not shown.

BIN
enderal.ico (Stored with Git LFS) Normal file

Binary file not shown.

View File

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