summaryrefslogtreecommitdiff
path: root/src/common/settings.cpp
diff options
context:
space:
mode:
authorGravatar lat9nq2023-06-07 01:53:57 -0400
committerGravatar lat9nq2023-07-21 10:56:54 -0400
commit78b270937367b813ef27a019e1a7a3728e3f9d55 (patch)
treec8e08a8a6110a9ed399169828d6e54b02983b7c6 /src/common/settings.cpp
parentsettings_enums: Cannonicalize settings names (diff)
downloadyuzu-78b270937367b813ef27a019e1a7a3728e3f9d55.tar.gz
yuzu-78b270937367b813ef27a019e1a7a3728e3f9d55.tar.xz
yuzu-78b270937367b813ef27a019e1a7a3728e3f9d55.zip
settings: Report all contained settings values
Also adds a couple characters that denotes the state of the setting. M for modified, or not default. C for custom, in context of per-game settings.
Diffstat (limited to 'src/common/settings.cpp')
-rw-r--r--src/common/settings.cpp64
1 files changed, 19 insertions, 45 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 0a8729b5a..84e90f893 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -61,56 +61,30 @@ void LogSettings() {
61 }; 61 };
62 62
63 LOG_INFO(Config, "yuzu Configuration:"); 63 LOG_INFO(Config, "yuzu Configuration:");
64 log_setting("Controls_UseDockedMode", values.use_docked_mode.GetValue()); 64 for (auto& [category, settings] : values.linkage.by_category) {
65 log_setting("System_RngSeedEnabled", values.rng_seed_enabled.GetValue()); 65 settings.sort([](const BasicSetting* a, const BasicSetting* b) {
66 log_setting("System_RngSeed", values.rng_seed.GetValue()); 66 return a->GetLabel() < b->GetLabel();
67 log_setting("System_DeviceName", values.device_name.GetValue()); 67 });
68 log_setting("System_CurrentUser", values.current_user.GetValue()); 68
69 log_setting("System_LanguageIndex", values.language_index.GetValue()); 69 for (const auto& setting : settings) {
70 log_setting("System_RegionIndex", values.region_index.GetValue()); 70 if (setting->Id() == values.yuzu_token.Id()) {
71 log_setting("System_TimeZoneIndex", values.time_zone_index.GetValue()); 71 // Hide the token secret, which could be used to share patreon builds
72 log_setting("System_UnsafeMemoryLayout", values.use_unsafe_extended_memory_layout.GetValue()); 72 continue;
73 log_setting("Core_UseMultiCore", values.use_multi_core.GetValue()); 73 }
74 log_setting("CPU_Accuracy", values.cpu_accuracy.GetValue()); 74
75 log_setting("Renderer_UseResolutionScaling", values.resolution_setup.GetValue()); 75 std::string name = fmt::format(
76 log_setting("Renderer_ScalingFilter", values.scaling_filter.GetValue()); 76 "{:c}{:c} {}.{}", setting->ToString() == setting->DefaultToString() ? '-' : 'M',
77 log_setting("Renderer_FSRSlider", values.fsr_sharpening_slider.GetValue()); 77 setting->UsingGlobal() ? '-' : 'C', TranslateCategory(category),
78 log_setting("Renderer_AntiAliasing", values.anti_aliasing.GetValue()); 78 setting->GetLabel());
79 log_setting("Renderer_UseSpeedLimit", values.use_speed_limit.GetValue()); 79
80 log_setting("Renderer_SpeedLimit", values.speed_limit.GetValue()); 80 log_setting(name, setting->Canonicalize());
81 log_setting("Renderer_UseDiskShaderCache", values.use_disk_shader_cache.GetValue()); 81 }
82 log_setting("Renderer_GPUAccuracyLevel", values.gpu_accuracy.GetValue()); 82 }
83 log_setting("Renderer_UseAsynchronousGpuEmulation",
84 values.use_asynchronous_gpu_emulation.GetValue());
85 log_setting("Renderer_NvdecEmulation", values.nvdec_emulation.GetValue());
86 log_setting("Renderer_AccelerateASTC", values.accelerate_astc.GetValue());
87 log_setting("Renderer_AstcRecompression", values.astc_recompression.GetValue());
88 log_setting("Renderer_UseVsync", values.vsync_mode.GetValue());
89 log_setting("Renderer_UseReactiveFlushing", values.use_reactive_flushing.GetValue());
90 log_setting("Renderer_ShaderBackend", values.shader_backend.GetValue());
91 log_setting("Renderer_UseAsynchronousShaders", values.use_asynchronous_shaders.GetValue());
92 log_setting("Renderer_AnisotropicFilteringLevel", values.max_anisotropy.GetValue());
93 log_setting("Audio_OutputEngine", Settings::TranslateEnum(values.sink_id.GetValue()));
94 log_setting("Audio_OutputDevice", values.audio_output_device_id.GetValue());
95 log_setting("Audio_InputDevice", values.audio_input_device_id.GetValue());
96 log_setting("DataStorage_UseVirtualSd", values.use_virtual_sd.GetValue());
97 log_path("DataStorage_CacheDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::CacheDir)); 83 log_path("DataStorage_CacheDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::CacheDir));
98 log_path("DataStorage_ConfigDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::ConfigDir)); 84 log_path("DataStorage_ConfigDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::ConfigDir));
99 log_path("DataStorage_LoadDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::LoadDir)); 85 log_path("DataStorage_LoadDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::LoadDir));
100 log_path("DataStorage_NANDDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::NANDDir)); 86 log_path("DataStorage_NANDDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::NANDDir));
101 log_path("DataStorage_SDMCDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::SDMCDir)); 87 log_path("DataStorage_SDMCDir", Common::FS::GetYuzuPath(Common::FS::YuzuPath::SDMCDir));
102 log_setting("Debugging_ProgramArgs", values.program_args.GetValue());
103 log_setting("Debugging_GDBStub", values.use_gdbstub.GetValue());
104 log_setting("Input_EnableMotion", values.motion_enabled.GetValue());
105 log_setting("Input_EnableVibration", values.vibration_enabled.GetValue());
106 log_setting("Input_EnableTouch", values.touchscreen.enabled);
107 log_setting("Input_EnableMouse", values.mouse_enabled.GetValue());
108 log_setting("Input_EnableKeyboard", values.keyboard_enabled.GetValue());
109 log_setting("Input_EnableRingController", values.enable_ring_controller.GetValue());
110 log_setting("Input_EnableIrSensor", values.enable_ir_sensor.GetValue());
111 log_setting("Input_EnableCustomJoycon", values.enable_joycon_driver.GetValue());
112 log_setting("Input_EnableCustomProController", values.enable_procon_driver.GetValue());
113 log_setting("Input_EnableRawInput", values.enable_raw_input.GetValue());
114} 88}
115 89
116bool IsConfiguringGlobal() { 90bool IsConfiguringGlobal() {