From 9b2740b3952107a3967c0abd93e0187d6cf9d659 Mon Sep 17 00:00:00 2001 From: Albert Liu <45282415+ggrtk@users.noreply.github.com> Date: Thu, 16 Jul 2020 18:17:43 -0700 Subject: [PATCH] HostInterface: Save tweak/hack defaults to settings file Fixes tweak/hack defaults not displaying correctly in Qt frontend. --- src/core/host_interface.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/core/host_interface.cpp b/src/core/host_interface.cpp index 9349448e4..e5aa47bff 100644 --- a/src/core/host_interface.cpp +++ b/src/core/host_interface.cpp @@ -395,6 +395,11 @@ void HostInterface::SetDefaultSettings(SettingsInterface& si) si.SetBoolValue("Debug", "ShowSPUState", false); si.SetBoolValue("Debug", "ShowTimersState", false); si.SetBoolValue("Debug", "ShowMDECState", false); + + si.SetIntValue("Hacks", "DMAMaxSliceTicks", static_cast(Settings::DEFAULT_DMA_MAX_SLICE_TICKS)); + si.SetIntValue("Hacks", "DMAHaltTicks", static_cast(Settings::DEFAULT_DMA_HALT_TICKS)); + si.SetIntValue("Hacks", "GPUFIFOSize", static_cast(Settings::DEFAULT_GPU_FIFO_SIZE)); + si.SetIntValue("Hacks", "GPUMaxRunAhead", static_cast(Settings::DEFAULT_GPU_MAX_RUN_AHEAD)); } void HostInterface::LoadSettings(SettingsInterface& si)