Skip to content

Commit

Permalink
Add Disable Letter-boxing
Browse files Browse the repository at this point in the history
  • Loading branch information
heatray committed Nov 11, 2023
1 parent e8ac72c commit 57d1a7f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions files/WUM.Patch.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[Main]
FrameInterval = 0
DisableLetterbox = 1
LandmineLodFix = 1
UnlockAllLanguages = 1
UnlockLoyaltyItems = 1
Expand Down
8 changes: 7 additions & 1 deletion source/patch.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "stdafx.h"

bool LandmineLodFix, UnlockAllLanguages, UnlockLoyaltyItems;
bool DisableLetterbox, LandmineLodFix, UnlockAllLanguages, UnlockLoyaltyItems;
uint8_t FrameInterval;

bool Borderless;
Expand All @@ -10,6 +10,7 @@ void Init()
CIniReader iniReader("");

FrameInterval = iniReader.ReadInteger("Main", "FrameInterval", 16);
DisableLetterbox = iniReader.ReadInteger("Main", "DisableLetterbox", 0) == 1;
LandmineLodFix = iniReader.ReadInteger("Main", "LandmineLodFix", 0) == 1;
UnlockAllLanguages = iniReader.ReadInteger("Main", "UnlockAllLanguages", 0) == 1;
UnlockLoyaltyItems = iniReader.ReadInteger("Main", "UnlockLoyaltyItems", 0) == 1;
Expand All @@ -21,6 +22,11 @@ void Init()
injector::WriteMemory<BYTE>(0x4D919F, FrameInterval, true);
}

if (DisableLetterbox)
{
injector::MakeJMP(0x6F6E37, 0x6F6ED0, true);
}

if (LandmineLodFix)
{
injector::WriteMemory<BYTE>(0x57CC46, 0xEB, true);
Expand Down

0 comments on commit 57d1a7f

Please sign in to comment.