@ -2,6 +2,8 @@
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
# include <string_view>
# include "common/file_util.h"
# include "core/core.h"
# include "core/gdbstub/gdbstub.h"
@ -91,41 +93,40 @@ void Apply() {
Service : : HID : : ReloadInputDevices ( ) ;
}
template < typename T >
void LogSetting ( const std : : string & name , const T & value ) {
LOG_INFO ( Config , " {}: {} " , name , value ) ;
}
void LogSettings ( ) {
const auto log_setting = [ ] ( std : : string_view name , const auto & value ) {
LOG_INFO ( Config , " {}: {} " , name , value ) ;
} ;
LOG_INFO ( Config , " yuzu Configuration: " ) ;
LogSetting ( " Controls_UseDockedMode " , Settings : : values . use_docked_mode ) ;
LogSetting ( " System_RngSeed " , Settings : : values . rng_seed . GetValue ( ) . value_or ( 0 ) ) ;
LogSetting ( " System_CurrentUser " , Settings : : values . current_user ) ;
LogS etting( " System_LanguageIndex " , Settings : : values . language_index . GetValue ( ) ) ;
LogS etting( " System_RegionIndex " , Settings : : values . region_index . GetValue ( ) ) ;
LogS etting( " System_TimeZoneIndex " , Settings : : values . time_zone_index . GetValue ( ) ) ;
LogS etting( " Core_UseMultiCore " , Settings : : values . use_multi_core . GetValue ( ) ) ;
LogS etting( " Renderer_UseResolutionFactor " , Settings : : values . resolution_factor . GetValue ( ) ) ;
LogS etting( " Renderer_UseFrameLimit " , Settings : : values . use_frame_limit . GetValue ( ) ) ;
LogS etting( " Renderer_FrameLimit " , Settings : : values . frame_limit . GetValue ( ) ) ;
LogS etting( " Renderer_UseDiskShaderCache " , Settings : : values . use_disk_shader_cache . GetValue ( ) ) ;
LogS etting( " Renderer_GPUAccuracyLevel " , Settings : : values . gpu_accuracy . GetValue ( ) ) ;
LogS etting( " Renderer_UseAsynchronousGpuEmulation " ,
Settings : : values . use_asynchronous_gpu_emulation . GetValue ( ) ) ;
LogS etting( " Renderer_UseVsync " , Settings : : values . use_vsync . GetValue ( ) ) ;
LogS etting( " Renderer_UseAssemblyShaders " , Settings : : values . use_assembly_shaders . GetValue ( ) ) ;
LogS etting( " Renderer_AnisotropicFilteringLevel " , Settings : : values . max_anisotropy . GetValue ( ) ) ;
LogS etting( " Audio_OutputEngine " , Settings : : values . sink_id ) ;
LogS etting( " Audio_EnableAudioStretching " , Settings : : values . enable_audio_stretching . GetValue ( ) ) ;
LogS etting( " Audio_OutputDevice " , Settings : : values . audio_device_id ) ;
LogS etting( " DataStorage_UseVirtualSd " , Settings : : values . use_virtual_sd ) ;
LogS etting( " DataStorage_NandDir " , FileUtil : : GetUserPath ( FileUtil : : UserPath : : NANDDir ) ) ;
LogS etting( " DataStorage_SdmcDir " , FileUtil : : GetUserPath ( FileUtil : : UserPath : : SDMCDir ) ) ;
LogS etting( " Debugging_UseGdbstub " , Settings : : values . use_gdbstub ) ;
LogS etting( " Debugging_GdbstubPort " , Settings : : values . gdbstub_port ) ;
LogS etting( " Debugging_ProgramArgs " , Settings : : values . program_args ) ;
LogS etting( " Services_BCATBackend " , Settings : : values . bcat_backend ) ;
LogS etting( " Services_BCATBoxcatLocal " , Settings : : values . bcat_boxcat_local ) ;
log_s etting( " Controls_UseDockedMode " , values . use_docked_mode ) ;
log_s etting( " System_RngSeed " , values . rng_seed . GetValue ( ) . value_or ( 0 ) ) ;
log_s etting( " System_CurrentUser " , values . current_user ) ;
log_s etting( " System_LanguageIndex " , values . language_index . GetValue ( ) ) ;
log_s etting( " System_RegionIndex " , values . region_index . GetValue ( ) ) ;
log_s etting( " System_TimeZoneIndex " , values . time_zone_index . GetValue ( ) ) ;
log_s etting( " Core_UseMultiCore " , values . use_multi_core . GetValue ( ) ) ;
log_s etting( " Renderer_UseResolutionFactor " , values . resolution_factor . GetValue ( ) ) ;
log_s etting( " Renderer_UseFrameLimit " , values . use_frame_limit . GetValue ( ) ) ;
log_s etting( " Renderer_FrameLimit " , values . frame_limit . GetValue ( ) ) ;
log_s etting( " Renderer_UseDiskShaderCache " , values . use_disk_shader_cache . GetValue ( ) ) ;
log_s etting( " Renderer_GPUAccuracyLevel " , values . gpu_accuracy . GetValue ( ) ) ;
log_s etting( " Renderer_UseAsynchronousGpuEmulation " ,
values . use_asynchronous_gpu_emulation . GetValue ( ) ) ;
log_s etting( " Renderer_UseVsync " , values . use_vsync . GetValue ( ) ) ;
log_s etting( " Renderer_UseAssemblyShaders " , values . use_assembly_shaders . GetValue ( ) ) ;
log_s etting( " Renderer_AnisotropicFilteringLevel " , values . max_anisotropy . GetValue ( ) ) ;
log_s etting( " Audio_OutputEngine " , values . sink_id ) ;
log_s etting( " Audio_EnableAudioStretching " , values . enable_audio_stretching . GetValue ( ) ) ;
log_s etting( " Audio_OutputDevice " , values . audio_device_id ) ;
log_s etting( " DataStorage_UseVirtualSd " , values . use_virtual_sd ) ;
log_s etting( " DataStorage_NandDir " , FileUtil : : GetUserPath ( FileUtil : : UserPath : : NANDDir ) ) ;
log_s etting( " DataStorage_SdmcDir " , FileUtil : : GetUserPath ( FileUtil : : UserPath : : SDMCDir ) ) ;
log_s etting( " Debugging_UseGdbstub " , values . use_gdbstub ) ;
log_s etting( " Debugging_GdbstubPort " , values . gdbstub_port ) ;
log_s etting( " Debugging_ProgramArgs " , values . program_args ) ;
log_s etting( " Services_BCATBackend " , values . bcat_backend ) ;
log_s etting( " Services_BCATBoxcatLocal " , values . bcat_boxcat_local ) ;
}
float Volume ( ) {