summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSonic Dreamcaster <alejandro.asenjo88@gmail.com>2025-02-01 04:23:51 -0300
committerSonic Dreamcaster <alejandro.asenjo88@gmail.com>2025-02-01 04:23:51 -0300
commit364e72760e216e981c47a6688800009de49b077b (patch)
treee92d30f3d3ae16a88daa876644fd3fe128d7f6ed
parentc317bf663dd2d33b8c6480b4d8ac0ea15592dc06 (diff)
move Disable Gamma option to developer menu
-rw-r--r--src/port/Engine.cpp2
-rw-r--r--src/port/ui/ImguiUI.cpp6
2 files changed, 5 insertions, 3 deletions
diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp
index 887523f3..dd6f825b 100644
--- a/src/port/Engine.cpp
+++ b/src/port/Engine.cpp
@@ -244,7 +244,7 @@ GameEngine::GameEngine() {
"SoundFont", static_cast<uint32_t>(SF64::ResourceType::SoundFont), 0);
prevAltAssets = CVarGetInteger("gEnhancements.Mods.AlternateAssets", 0);
- gEnableGammaBoost = CVarGetInteger("gGraphics.GammaMode", 1) == 1;
+ gEnableGammaBoost = CVarGetInteger("gGraphics.GammaMode", 0) == 0;
context->GetResourceManager()->SetAltAssetsEnabled(prevAltAssets);
}
diff --git a/src/port/ui/ImguiUI.cpp b/src/port/ui/ImguiUI.cpp
index 0b1aaf57..6f67f8b6 100644
--- a/src/port/ui/ImguiUI.cpp
+++ b/src/port/ui/ImguiUI.cpp
@@ -395,8 +395,6 @@ void DrawSettingsMenu(){
}
UIWidgets::PaddedEnhancementCheckbox("Enable Alternative Assets", "gEnhancements.Mods.AlternateAssets");
- UIWidgets::EnhancementCheckbox("Enable Gamma Boost (Needs reload)", "gGraphics.GammaMode", false, "Gamma Boost is disabled in the current build of the game", UIWidgets::CheckboxGraphics::Cross, true);
-
// If more filters are added to LUS, make sure to add them to the filters list here
ImGui::Text("Texture Filter (Needs reload)");
UIWidgets::EnhancementCombobox("gTextureFilter", filters, 0);
@@ -667,6 +665,10 @@ void DrawDebugMenu() {
UIWidgets::CVarCheckbox("Disable Starfield interpolation", "gDisableStarsInterpolation", {
.tooltip = "Disable starfield interpolation to increase performance on slower CPUs"
});
+ UIWidgets::CVarCheckbox("Disable Gamma Boost (Needs reload)", "gGraphics.GammaMode", {
+ .tooltip = "Gamma Boost is disabled in the current build of the game",
+ .defaultValue = false
+ });
UIWidgets::CVarCheckbox("Spawner Mod", "gSpawnerMod", {
.tooltip = "Spawn Scenery, Actors, Bosses, Sprites, Items, Effects and even Event Actors.\n"