diff options
Diffstat (limited to 'src/core/settings.cpp')
| -rw-r--r-- | src/core/settings.cpp | 57 |
1 files changed, 4 insertions, 53 deletions
diff --git a/src/core/settings.cpp b/src/core/settings.cpp index e8a6f2a6e..28d3f9099 100644 --- a/src/core/settings.cpp +++ b/src/core/settings.cpp | |||
| @@ -13,56 +13,6 @@ | |||
| 13 | 13 | ||
| 14 | namespace Settings { | 14 | namespace Settings { |
| 15 | 15 | ||
| 16 | namespace NativeButton { | ||
| 17 | const std::array<const char*, NumButtons> mapping = {{ | ||
| 18 | "button_a", | ||
| 19 | "button_b", | ||
| 20 | "button_x", | ||
| 21 | "button_y", | ||
| 22 | "button_lstick", | ||
| 23 | "button_rstick", | ||
| 24 | "button_l", | ||
| 25 | "button_r", | ||
| 26 | "button_zl", | ||
| 27 | "button_zr", | ||
| 28 | "button_plus", | ||
| 29 | "button_minus", | ||
| 30 | "button_dleft", | ||
| 31 | "button_dup", | ||
| 32 | "button_dright", | ||
| 33 | "button_ddown", | ||
| 34 | "button_lstick_left", | ||
| 35 | "button_lstick_up", | ||
| 36 | "button_lstick_right", | ||
| 37 | "button_lstick_down", | ||
| 38 | "button_rstick_left", | ||
| 39 | "button_rstick_up", | ||
| 40 | "button_rstick_right", | ||
| 41 | "button_rstick_down", | ||
| 42 | "button_sl", | ||
| 43 | "button_sr", | ||
| 44 | "button_home", | ||
| 45 | "button_screenshot", | ||
| 46 | }}; | ||
| 47 | } | ||
| 48 | |||
| 49 | namespace NativeAnalog { | ||
| 50 | const std::array<const char*, NumAnalogs> mapping = {{ | ||
| 51 | "lstick", | ||
| 52 | "rstick", | ||
| 53 | }}; | ||
| 54 | } | ||
| 55 | |||
| 56 | namespace NativeMouseButton { | ||
| 57 | const std::array<const char*, NumMouseButtons> mapping = {{ | ||
| 58 | "left", | ||
| 59 | "right", | ||
| 60 | "middle", | ||
| 61 | "forward", | ||
| 62 | "back", | ||
| 63 | }}; | ||
| 64 | } | ||
| 65 | |||
| 66 | Values values = {}; | 16 | Values values = {}; |
| 67 | bool configuring_global = true; | 17 | bool configuring_global = true; |
| 68 | 18 | ||
| @@ -115,13 +65,14 @@ void LogSettings() { | |||
| 115 | values.use_asynchronous_gpu_emulation.GetValue()); | 65 | values.use_asynchronous_gpu_emulation.GetValue()); |
| 116 | log_setting("Renderer_UseVsync", values.use_vsync.GetValue()); | 66 | log_setting("Renderer_UseVsync", values.use_vsync.GetValue()); |
| 117 | log_setting("Renderer_UseAssemblyShaders", values.use_assembly_shaders.GetValue()); | 67 | log_setting("Renderer_UseAssemblyShaders", values.use_assembly_shaders.GetValue()); |
| 68 | log_setting("Renderer_UseAsynchronousShaders", values.use_asynchronous_shaders.GetValue()); | ||
| 118 | log_setting("Renderer_AnisotropicFilteringLevel", values.max_anisotropy.GetValue()); | 69 | log_setting("Renderer_AnisotropicFilteringLevel", values.max_anisotropy.GetValue()); |
| 119 | log_setting("Audio_OutputEngine", values.sink_id); | 70 | log_setting("Audio_OutputEngine", values.sink_id); |
| 120 | log_setting("Audio_EnableAudioStretching", values.enable_audio_stretching.GetValue()); | 71 | log_setting("Audio_EnableAudioStretching", values.enable_audio_stretching.GetValue()); |
| 121 | log_setting("Audio_OutputDevice", values.audio_device_id); | 72 | log_setting("Audio_OutputDevice", values.audio_device_id); |
| 122 | log_setting("DataStorage_UseVirtualSd", values.use_virtual_sd); | 73 | log_setting("DataStorage_UseVirtualSd", values.use_virtual_sd); |
| 123 | log_setting("DataStorage_NandDir", FileUtil::GetUserPath(FileUtil::UserPath::NANDDir)); | 74 | log_setting("DataStorage_NandDir", Common::FS::GetUserPath(Common::FS::UserPath::NANDDir)); |
| 124 | log_setting("DataStorage_SdmcDir", FileUtil::GetUserPath(FileUtil::UserPath::SDMCDir)); | 75 | log_setting("DataStorage_SdmcDir", Common::FS::GetUserPath(Common::FS::UserPath::SDMCDir)); |
| 125 | log_setting("Debugging_UseGdbstub", values.use_gdbstub); | 76 | log_setting("Debugging_UseGdbstub", values.use_gdbstub); |
| 126 | log_setting("Debugging_GdbstubPort", values.gdbstub_port); | 77 | log_setting("Debugging_GdbstubPort", values.gdbstub_port); |
| 127 | log_setting("Debugging_ProgramArgs", values.program_args); | 78 | log_setting("Debugging_ProgramArgs", values.program_args); |
| @@ -170,8 +121,8 @@ void RestoreGlobalState() { | |||
| 170 | values.use_asynchronous_gpu_emulation.SetGlobal(true); | 121 | values.use_asynchronous_gpu_emulation.SetGlobal(true); |
| 171 | values.use_vsync.SetGlobal(true); | 122 | values.use_vsync.SetGlobal(true); |
| 172 | values.use_assembly_shaders.SetGlobal(true); | 123 | values.use_assembly_shaders.SetGlobal(true); |
| 124 | values.use_asynchronous_shaders.SetGlobal(true); | ||
| 173 | values.use_fast_gpu_time.SetGlobal(true); | 125 | values.use_fast_gpu_time.SetGlobal(true); |
| 174 | values.force_30fps_mode.SetGlobal(true); | ||
| 175 | values.bg_red.SetGlobal(true); | 126 | values.bg_red.SetGlobal(true); |
| 176 | values.bg_green.SetGlobal(true); | 127 | values.bg_green.SetGlobal(true); |
| 177 | values.bg_blue.SetGlobal(true); | 128 | values.bg_blue.SetGlobal(true); |