diff options
Diffstat (limited to 'src/yuzu_cmd')
| -rw-r--r-- | src/yuzu_cmd/CMakeLists.txt | 25 | ||||
| -rw-r--r-- | src/yuzu_cmd/config.cpp | 18 | ||||
| -rw-r--r-- | src/yuzu_cmd/default_ini.h | 16 | ||||
| -rw-r--r-- | src/yuzu_cmd/yuzu.rc | 2 | 
4 files changed, 34 insertions, 27 deletions
| diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt index 433e210b0..297dab653 100644 --- a/src/yuzu_cmd/CMakeLists.txt +++ b/src/yuzu_cmd/CMakeLists.txt @@ -1,21 +1,18 @@  set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules) -set(SRCS -            emu_window/emu_window_sdl2.cpp -            config.cpp -            yuzu.cpp -            yuzu.rc -            ) -set(HEADERS -            emu_window/emu_window_sdl2.h -            config.h -            default_ini.h -            resource.h -            ) +add_executable(yuzu-cmd +    config.cpp +    config.h +    default_ini.h +    emu_window/emu_window_sdl2.cpp +    emu_window/emu_window_sdl2.h +    resource.h +    yuzu.cpp +    yuzu.rc +) -create_directory_groups(${SRCS} ${HEADERS}) +create_target_directory_groups(yuzu-cmd) -add_executable(yuzu-cmd ${SRCS} ${HEADERS})  target_link_libraries(yuzu-cmd PRIVATE common core input_common)  target_link_libraries(yuzu-cmd PRIVATE inih glad)  if (MSVC) diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index e5be72213..8b479bc6d 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp @@ -49,10 +49,18 @@ static const std::array<int, Settings::NativeButton::NumButtons> default_buttons  static const std::array<std::array<int, 5>, Settings::NativeAnalog::NumAnalogs> default_analogs{{      { -        SDL_SCANCODE_UP, SDL_SCANCODE_DOWN, SDL_SCANCODE_LEFT, SDL_SCANCODE_RIGHT, SDL_SCANCODE_D, +        SDL_SCANCODE_UP, +        SDL_SCANCODE_DOWN, +        SDL_SCANCODE_LEFT, +        SDL_SCANCODE_RIGHT, +        SDL_SCANCODE_D,      },      { -        SDL_SCANCODE_I, SDL_SCANCODE_K, SDL_SCANCODE_J, SDL_SCANCODE_L, SDL_SCANCODE_D, +        SDL_SCANCODE_I, +        SDL_SCANCODE_K, +        SDL_SCANCODE_J, +        SDL_SCANCODE_L, +        SDL_SCANCODE_D,      },  }}; @@ -82,8 +90,7 @@ void Config::ReadValues() {          sdl2_config->Get("Controls", "touch_device", "engine:emu_window");      // Core -    Settings::values.cpu_core = -        static_cast<Settings::CpuCore>(sdl2_config->GetInteger("Core", "cpu_core", 0)); +    Settings::values.use_cpu_jit = sdl2_config->GetBoolean("Core", "use_cpu_jit", true);      // Renderer      Settings::values.resolution_factor = @@ -99,6 +106,9 @@ void Config::ReadValues() {      Settings::values.use_virtual_sd =          sdl2_config->GetBoolean("Data Storage", "use_virtual_sd", true); +    // System +    Settings::values.use_docked_mode = sdl2_config->GetBoolean("System", "use_docked_mode", true); +      // Miscellaneous      Settings::values.log_filter = sdl2_config->Get("Miscellaneous", "log_filter", "*:Trace"); diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h index 5a2f539b1..cf157bf27 100644 --- a/src/yuzu_cmd/default_ini.h +++ b/src/yuzu_cmd/default_ini.h @@ -76,9 +76,9 @@ motion_device=  touch_device=  [Core] -# Which CPU core to use for CPU emulation -# 0 (default): Unicorn (slow), 1: Dynarmic (faster) -cpu_core = +# Whether to use the Just-In-Time (JIT) compiler for CPU emulation +# 0: Interpreter (slow), 1 (default): JIT (fast) +use_cpu_jit =  [Renderer]  # Whether to use software or hardware rendering. @@ -124,8 +124,8 @@ custom_bottom_top =  custom_bottom_right =  custom_bottom_bottom = -#Whether to toggle frame limiter on or off. -# 0: Off , 1  (default): On +# Whether to toggle frame limiter on or off. +# 0: Off, 1 (default): On  toggle_framelimit =  # Swaps the prominent screen with the other screen. @@ -154,9 +154,9 @@ output_device =  use_virtual_sd =  [System] -# The system model that Citra will try to emulate -# 0: Old 3DS (default), 1: New 3DS -is_new_3ds = +# Whether the system is docked +# 1 (default): Yes, 0: No +use_docked_mode =  # The system region that Citra will use during emulation  # -1: Auto-select (default), 0: Japan, 1: USA, 2: Europe, 3: Australia, 4: China, 5: Korea, 6: Taiwan diff --git a/src/yuzu_cmd/yuzu.rc b/src/yuzu_cmd/yuzu.rc index 7cb8a14e1..7de8ef3d9 100644 --- a/src/yuzu_cmd/yuzu.rc +++ b/src/yuzu_cmd/yuzu.rc @@ -6,7 +6,7 @@  // Icon with lowest ID value placed first to ensure application icon  // remains consistent on all systems. -CITRA_ICON              ICON                    "../../dist/yuzu.ico" +YUZU_ICON               ICON                    "../../dist/yuzu.ico"  ///////////////////////////////////////////////////////////////////////////// | 
