diff options
author | zhupengfei <zhupengfei321@sina.cn> | 2018-07-10 12:02:14 +0200 |
---|---|---|
committer | fearlessTobi <thm.frey@gmail.com> | 2019-01-22 23:35:38 +0100 |
commit | a94a828b6c5c1a1631ef0c414da570e8c22bc3f5 (patch) | |
tree | 07e6f58a85f042fdb5613b0a7ea805ccc75e7e0b /src/core | |
parent | Merge pull request #2047 from FearlessTobi/patch-3 (diff) | |
download | yuzu-a94a828b6c5c1a1631ef0c414da570e8c22bc3f5.tar yuzu-a94a828b6c5c1a1631ef0c414da570e8c22bc3f5.tar.gz yuzu-a94a828b6c5c1a1631ef0c414da570e8c22bc3f5.tar.bz2 yuzu-a94a828b6c5c1a1631ef0c414da570e8c22bc3f5.tar.lz yuzu-a94a828b6c5c1a1631ef0c414da570e8c22bc3f5.tar.xz yuzu-a94a828b6c5c1a1631ef0c414da570e8c22bc3f5.tar.zst yuzu-a94a828b6c5c1a1631ef0c414da570e8c22bc3f5.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/settings.cpp | 29 | ||||
-rw-r--r-- | src/core/settings.h | 1 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/core/settings.cpp b/src/core/settings.cpp index 26fcd3405..2e232e1e7 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp @@ -74,4 +74,33 @@ void Apply() { Service::HID::ReloadInputDevices(); } +template <typename T> +void LogSetting(const std::string& name, const T& value) { + LOG_INFO(Config, "{}: {}", name, value); +} + +void LogSettings() { + LOG_INFO(Config, "yuzu Configuration:"); + LogSetting("System_UseDockedMode", Settings::values.use_docked_mode); + LogSetting("System_EnableNfc", Settings::values.enable_nfc); + LogSetting("System_RngSeed", Settings::values.rng_seed.value_or(0)); + LogSetting("System_CurrentUser", Settings::values.current_user); + LogSetting("System_LanguageIndex", Settings::values.language_index); + LogSetting("Core_UseCpuJit", Settings::values.use_cpu_jit); + LogSetting("Core_UseMultiCore", Settings::values.use_multi_core); + LogSetting("Renderer_UseResolutionFactor", Settings::values.resolution_factor); + LogSetting("Renderer_UseFrameLimit", Settings::values.use_frame_limit); + LogSetting("Renderer_FrameLimit", Settings::values.frame_limit); + LogSetting("Renderer_UseAccurateGpuEmulation", Settings::values.use_accurate_gpu_emulation); + LogSetting("Audio_OutputEngine", Settings::values.sink_id); + LogSetting("Audio_EnableAudioStretching", Settings::values.enable_audio_stretching); + LogSetting("Audio_OutputDevice", Settings::values.audio_device_id); + LogSetting("DataStorage_UseVirtualSd", Settings::values.use_virtual_sd); + LogSetting("DataStorage_NandDir", Settings::values.nand_dir); + LogSetting("DataStorage_SdmcDir", Settings::values.sdmc_dir); + LogSetting("Debugging_UseGdbstub", Settings::values.use_gdbstub); + LogSetting("Debugging_GdbstubPort", Settings::values.gdbstub_port); + LogSetting("Debugging_ProgramArgs", Settings::values.program_args); +} + } // namespace Settings diff --git a/src/core/settings.h b/src/core/settings.h index 29ce98983..c97387fc7 100644 --- a/src/core/settings.h +++ b/src/core/settings.h @@ -425,4 +425,5 @@ struct Values { } extern values; void Apply(); +void LogSettings(); } // namespace Settings |