From dc44d7f42b3d80fd1887929c1ce7f2263a91b723 Mon Sep 17 00:00:00 2001 From: hatcyl Date: Mon, 22 Jul 2024 21:54:57 -0700 Subject: [PATCH] Fix broken setting (that I broke). --- src/game/config.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/game/config.cpp b/src/game/config.cpp index 2491f55..930d2a4 100644 --- a/src/game/config.cpp +++ b/src/game/config.cpp @@ -218,8 +218,8 @@ bool save_general_config(const std::filesystem::path& path) { config_json["joystick_deadzone"] = recomp::get_joystick_deadzone(); config_json["autosave_mode"] = zelda64::get_autosave_mode(); config_json["camera_invert_mode"] = zelda64::get_camera_invert_mode(); - config_json["analog_cam_mode"] = zelda64::get_special_item_hud_mode(); - config_json["special_item_hud_mode"] = zelda64::get_analog_cam_mode(); + config_json["analog_cam_mode"] = zelda64::get_analog_cam_mode(); + config_json["special_item_hud_mode"] = zelda64::get_special_item_hud_mode(); config_json["analog_camera_invert_mode"] = zelda64::get_analog_camera_invert_mode(); config_json["debug_mode"] = zelda64::get_debug_mode_enabled(); @@ -235,6 +235,7 @@ void set_general_settings_from_json(const nlohmann::json& config_json) { recomp::set_joystick_deadzone(from_or_default(config_json, "joystick_deadzone", 5)); zelda64::set_autosave_mode(from_or_default(config_json, "autosave_mode", zelda64::AutosaveMode::On)); zelda64::set_camera_invert_mode(from_or_default(config_json, "camera_invert_mode", zelda64::CameraInvertMode::InvertY)); + zelda64::set_analog_cam_mode(from_or_default(config_json, "analog_cam_mode", zelda64::AnalogCamMode::Off)); zelda64::set_special_item_hud_mode(from_or_default(config_json, "special_item_hud_mode", zelda64::SpecialItemHudMode::On)); zelda64::set_analog_camera_invert_mode(from_or_default(config_json, "analog_camera_invert_mode", zelda64::CameraInvertMode::InvertNone)); zelda64::set_debug_mode_enabled(from_or_default(config_json, "debug_mode", false));