mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 03:09:15 +01:00
Don't patch 480p if a game uses MetaFortress
This commit is contained in:
parent
2547bd75d9
commit
64bfd820bb
@ -457,12 +457,24 @@ int GameBooter::BootGame(struct discHdr *gameHdr)
|
||||
//! Load Code handler if needed
|
||||
load_handler(Hooktype, WiirdDebugger, Settings.WiirdDebuggerPause);
|
||||
|
||||
|
||||
//! Perform 480p fix if needed.
|
||||
//! Needs to be done after the call to gamepatches(), after loading any code handler.
|
||||
//! Apply the 480p fix (enabled by default).
|
||||
//! This needs to be done after the call to gamepatches(), after loading any code handler.
|
||||
//! Can (and should) be done before Wiimmfi patching, can't be done in gamepatches() itself.
|
||||
if(patchFix480pChoice)
|
||||
//! Exclude Prince of Persia: The Forgotten Sands and a few games that use MetaFortress
|
||||
bool excludeGame = false;
|
||||
if (memcmp(gameHeader.id, "RPW", 3) == 0 || memcmp(gameHeader.id, "SPX", 3) == 0 ||
|
||||
memcmp(gameHeader.id, "R3D", 3) == 0 || memcmp(gameHeader.id, "SDV", 3) == 0 ||
|
||||
memcmp(gameHeader.id, "SUK", 3) == 0 || memcmp(gameHeader.id, "STN", 3) == 0 ||
|
||||
memcmp(gameHeader.id, "S7S", 3) == 0 || memcmp(gameHeader.id, "SDUP41", 6) == 0 ||
|
||||
memcmp(gameHeader.id, "SDUE41", 6) == 0 || memcmp(gameHeader.id, "SDUX41", 6) == 0)
|
||||
{
|
||||
excludeGame = true;
|
||||
}
|
||||
|
||||
if (patchFix480pChoice && !excludeGame)
|
||||
{
|
||||
PatchFix480p();
|
||||
}
|
||||
|
||||
//! If we're NOT on Wiimmfi, patch the known RCE vulnerability in MKWii.
|
||||
//! Wiimmfi will handle that on its own through the update payload.
|
||||
|
Loading…
Reference in New Issue
Block a user