Explorar o código

Merge pull request #9675 from Morph1984/ini-concat

default_ini: Split and concatenate the config string literal
liamwhite %!s(int64=3) %!d(string=hai) anos
pai
achega
0d1a9a12c9
Modificáronse 1 ficheiros con 8 adicións e 2 borrados
  1. 8 2
      src/yuzu_cmd/default_ini.h

+ 8 - 2
src/yuzu_cmd/default_ini.h

@@ -5,8 +5,8 @@
 
 
 namespace DefaultINI {
 namespace DefaultINI {
 
 
-const char* sdl2_config_file = R"(
-
+const char* sdl2_config_file =
+    R"(
 [ControlsP0]
 [ControlsP0]
 # The input devices and parameters for each Switch native input
 # The input devices and parameters for each Switch native input
 # The config section determines the player number where the config will be applied on. For example "ControlsP0", "ControlsP1", ...
 # The config section determines the player number where the config will be applied on. For example "ControlsP0", "ControlsP1", ...
@@ -143,6 +143,8 @@ mouse_enabled =
 # 0 (default): Disabled, 1: Enabled
 # 0 (default): Disabled, 1: Enabled
 keyboard_enabled =
 keyboard_enabled =
 
 
+)"
+    R"(
 [Core]
 [Core]
 # Whether to use multi-core for CPU emulation
 # Whether to use multi-core for CPU emulation
 # 0: Disabled, 1 (default): Enabled
 # 0: Disabled, 1 (default): Enabled
@@ -242,6 +244,8 @@ cpuopt_unsafe_fastmem_check =
 # 0: Disabled, 1 (default): Enabled
 # 0: Disabled, 1 (default): Enabled
 cpuopt_unsafe_ignore_global_monitor =
 cpuopt_unsafe_ignore_global_monitor =
 
 
+)"
+    R"(
 [Renderer]
 [Renderer]
 # Which backend API to use.
 # Which backend API to use.
 # 0: OpenGL, 1 (default): Vulkan
 # 0: OpenGL, 1 (default): Vulkan
@@ -360,6 +364,8 @@ bg_red =
 bg_blue =
 bg_blue =
 bg_green =
 bg_green =
 
 
+)"
+    R"(
 [Audio]
 [Audio]
 # Which audio output engine to use.
 # Which audio output engine to use.
 # auto (default): Auto-select
 # auto (default): Auto-select