From f927e3f2d4c6ddb41c18ed68e707fe040e3599a2 Mon Sep 17 00:00:00 2001 From: doodlum <15017472+doodlum@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:01:15 +0000 Subject: [PATCH] fix: dont save vl settings to ini on flatrim (#819) --- 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()