mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-06 19:45:33 +00:00
System: Fix setting-altering game patch behaviour
e.g. overclock was only half applying
This commit is contained in:
parent
bceadadcb4
commit
e0620fcd40
@ -1863,6 +1863,14 @@ bool System::BootSystem(SystemBootParameters parameters, Error* error)
|
||||
bool System::Initialize(std::unique_ptr<CDImage> disc, DiscRegion disc_region, bool force_software_renderer,
|
||||
bool fullscreen, Error* error)
|
||||
{
|
||||
// Cheats have to be loaded first, otherwise we don't apply settings that are used below.
|
||||
if (!IsReplayingGPUDump())
|
||||
{
|
||||
Cheats::ReloadCheats(true, true, false, true, true);
|
||||
if (Cheats::HasAnySettingOverrides())
|
||||
ApplySettings(true);
|
||||
}
|
||||
|
||||
s_state.ticks_per_second = ScaleTicksToOverclock(MASTER_CLOCK);
|
||||
s_state.max_slice_ticks = ScaleTicksToOverclock(MASTER_CLOCK / 10);
|
||||
s_state.frame_number = 1;
|
||||
@ -1927,13 +1935,6 @@ bool System::Initialize(std::unique_ptr<CDImage> disc, DiscRegion disc_region, b
|
||||
UpdateThrottlePeriod();
|
||||
UpdateMemorySaveStateSettings();
|
||||
|
||||
if (!IsReplayingGPUDump())
|
||||
{
|
||||
Cheats::ReloadCheats(true, true, false, true, true);
|
||||
if (Cheats::HasAnySettingOverrides())
|
||||
ApplySettings(true);
|
||||
}
|
||||
|
||||
PerformanceCounters::Clear();
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user