mirror of
https://github.com/isledecomp/LEGOIslandRebuilder.git
synced 2025-02-17 00:20:40 -05:00
patch: implement native smk res patch
This commit is contained in:
parent
16b69d91d1
commit
67ef1442d4
2 changed files with 11 additions and 0 deletions
|
@ -83,6 +83,13 @@ __declspec(dllexport) DWORD WINAPI Patch()
|
|||
SearchReplacePattern(dllBase, exit_pattern, exit_replace, 37, TRUE);
|
||||
}
|
||||
|
||||
// Disable SMK scaling
|
||||
if (config.GetInt(_T("NativeSMK"))) {
|
||||
const char *smk_pattern = "\x8A\x4C\x24\x0C\x51";
|
||||
const char *smk_replace = "\xB1\x00\x90\x90\x51";
|
||||
SearchReplacePattern(dllBase, smk_pattern, smk_replace, 5, TRUE);
|
||||
}
|
||||
|
||||
// Disable auto-finish in build sections
|
||||
if (config.GetInt(_T("DisableAutoFinishBuilding"))) {
|
||||
// Pattern used in August build (jump is much shorter so it uses a different opcode)
|
||||
|
|
|
@ -197,6 +197,10 @@ PatchGrid::PatchGrid()
|
|||
"1.0 = Default (greater than 1.0 is zoomed in, less than 1.0 is zoomed out)",
|
||||
AddDoubleItem(sectionGraphics, "Field of View Adjustment", 1.0));
|
||||
|
||||
AddPatch("NativeSMK",
|
||||
"Very few of LEGO Island's movies are actually the same resolution as the game. This patch disables scaling of these movies, causing LEGO Island to play them at their native resolutions.",
|
||||
AddBoolItem(sectionGraphics, "Play Movies at Native Resolution", false));
|
||||
|
||||
// Audio section
|
||||
HSECTION sectionMusic = AddSection("Audio");
|
||||
|
||||
|
|
Loading…
Reference in a new issue