Skip to content

Commit

Permalink
Patch PV DB date check to depend on mod priority.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueskythlikesclouds committed Nov 21, 2023
1 parent 400a80b commit 8631099
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Source/DivaModLoader/Patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ SIG_SCAN
"xxxxxxxx"
);

SIG_SCAN
(
sigPvDbDateCheck,
0x1404B152D,
"\x0F\x8D\xD1\x6E\x00\x00",
"xxxxxx"
);

void Patches::init()
{
// Prevent SteamAPI_RestartAppIfNecessary.
Expand All @@ -75,10 +83,6 @@ void Patches::init()
WRITE_MEMORY(sigCosLimit1(), uint8_t, 0xEB);
WRITE_NOP(sigCosLimit2(), 4);

// Remove texture ID limit of 1048575.
// FIXME: This breaks module texture replacements!
//WRITE_NOP(0x140461021, 6);
//WRITE_NOP(0x140461435, 6);
//WRITE_NOP(0x140462608, 6);
//WRITE_NOP(0x140462C66, 6);
// Remove PV DB date check.
WRITE_NOP(sigPvDbDateCheck(), 6);
}

0 comments on commit 8631099

Please sign in to comment.