MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / ApplyGameFixes

Method ApplyGameFixes

pcsx2/VMManager.cpp:724–746  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722}
723
724void VMManager::ApplyGameFixes()
725{
726 if (!HasBootedELF() && !GSDumpReplayer::IsReplayingDump())
727 {
728 // Instant DMA needs to be on for this BIOS (font rendering is broken without it, possible cache issues).
729 EmuConfig.Gamefixes.InstantDMAHack = true;
730
731 // Disable user's manual hardware fixes, it might be problematic.
732 EmuConfig.GS.ManualUserHacks = false;
733 return;
734 }
735
736 const GameDatabaseSchema::GameEntry* game = GameDatabase::findGame(s_disc_serial);
737 if (!game)
738 return;
739
740 game->applyGameFixes(EmuConfig, EmuConfig.EnableGameFixes);
741 game->applyGSHardwareFixes(EmuConfig.GS);
742
743 // Re-remove upscaling fixes, make sure they don't apply at native res.
744 // We do this in LoadCoreSettings(), but game fixes get applied afterwards because of the unsafe warning.
745 EmuConfig.GS.MaskUpscalingHacks();
746}
747
748void VMManager::ApplySettings()
749{

Callers

nothing calls this directly

Calls 3

applyGameFixesMethod · 0.80
applyGSHardwareFixesMethod · 0.80
MaskUpscalingHacksMethod · 0.80

Tested by

no test coverage detected