Fix broken setting (that I broke).

This commit is contained in:
hatcyl 2024-07-22 21:54:57 -07:00
parent 3e6773970d
commit dc44d7f42b

View File

@ -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));