From 5930f6649cc410d729f0c6392727a04f393216ab Mon Sep 17 00:00:00 2001 From: Tim <15017472+doodlum@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:00:15 +0000 Subject: [PATCH] fix: dont save vl settings to ini on flatrim --- src/Features/VolumetricLighting.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Features/VolumetricLighting.cpp b/src/Features/VolumetricLighting.cpp index e76283a6c..6123656f2 100644 --- a/src/Features/VolumetricLighting.cpp +++ b/src/Features/VolumetricLighting.cpp @@ -29,13 +29,15 @@ void VolumetricLighting::DrawSettings() void VolumetricLighting::LoadSettings(json& o_json) { settings = o_json; - Util::LoadGameSettings(VLSettings); + if (State::GetSingleton()->isVR) + Util::LoadGameSettings(VLSettings); } void VolumetricLighting::SaveSettings(json& o_json) { o_json = settings; - Util::SaveGameSettings(VLSettings); + if (State::GetSingleton()->isVR) + Util::SaveGameSettings(VLSettings); } void VolumetricLighting::RestoreDefaultSettings()