Skip to content

Commit

Permalink
refactor: adjust brackets for VL (#820)
Browse files Browse the repository at this point in the history
* refactor: adjust brackets in VL

* refactor: more

* style: 🎨 apply clang-format changes

---------

Co-authored-by: doodlum <[email protected]>
  • Loading branch information
doodlum and doodlum authored Dec 6, 2024
1 parent f927e3f commit 75ec49c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Features/VolumetricLighting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,24 @@ void VolumetricLighting::DrawSettings()
void VolumetricLighting::LoadSettings(json& o_json)
{
settings = o_json;
if (State::GetSingleton()->isVR)
if (State::GetSingleton()->isVR) {
Util::LoadGameSettings(VLSettings);
}
}

void VolumetricLighting::SaveSettings(json& o_json)
{
o_json = settings;
if (State::GetSingleton()->isVR)
if (State::GetSingleton()->isVR) {
Util::SaveGameSettings(VLSettings);
}
}

void VolumetricLighting::RestoreDefaultSettings()
{
settings = {};
Util::ResetGameSettingsToDefaults(VLSettings);
if (State::GetSingleton()->isVR) {
Util::ResetGameSettingsToDefaults(VLSettings);
Util::ResetGameSettingsToDefaults(hiddenVRSettings);
}
}
Expand Down

0 comments on commit 75ec49c

Please sign in to comment.