diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu_cmd/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | src/yuzu_cmd/config.cpp | 5 | ||||
| -rw-r--r-- | src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | 6 | ||||
| -rw-r--r-- | src/yuzu_cmd/yuzu.cpp (renamed from src/yuzu_cmd/citra.cpp) | 5 | ||||
| -rw-r--r-- | src/yuzu_cmd/yuzu.rc (renamed from src/yuzu_cmd/citra.rc) | 4 |
5 files changed, 12 insertions, 12 deletions
diff --git a/src/yuzu_cmd/CMakeLists.txt b/src/yuzu_cmd/CMakeLists.txt index c6c527eb6..802e060f4 100644 --- a/src/yuzu_cmd/CMakeLists.txt +++ b/src/yuzu_cmd/CMakeLists.txt | |||
| @@ -2,9 +2,9 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/CMakeModules) | |||
| 2 | 2 | ||
| 3 | set(SRCS | 3 | set(SRCS |
| 4 | emu_window/emu_window_sdl2.cpp | 4 | emu_window/emu_window_sdl2.cpp |
| 5 | citra.cpp | ||
| 6 | config.cpp | 5 | config.cpp |
| 7 | citra.rc | 6 | yuzu.cpp |
| 7 | yuzu.rc | ||
| 8 | ) | 8 | ) |
| 9 | set(HEADERS | 9 | set(HEADERS |
| 10 | emu_window/emu_window_sdl2.h | 10 | emu_window/emu_window_sdl2.h |
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 94d1a9f1c..eee3f5c5e 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp | |||
| @@ -5,13 +5,14 @@ | |||
| 5 | #include <memory> | 5 | #include <memory> |
| 6 | #include <SDL.h> | 6 | #include <SDL.h> |
| 7 | #include <inih/cpp/INIReader.h> | 7 | #include <inih/cpp/INIReader.h> |
| 8 | #include "citra/config.h" | ||
| 9 | #include "citra/default_ini.h" | ||
| 10 | #include "common/file_util.h" | 8 | #include "common/file_util.h" |
| 11 | #include "common/logging/log.h" | 9 | #include "common/logging/log.h" |
| 12 | #include "common/param_package.h" | 10 | #include "common/param_package.h" |
| 13 | #include "core/settings.h" | 11 | #include "core/settings.h" |
| 14 | #include "input_common/main.h" | 12 | #include "input_common/main.h" |
| 13 | #include "yuzu_cmd/config.h" | ||
| 14 | #include "yuzu_cmd/default_ini.h" | ||
| 15 | |||
| 15 | 16 | ||
| 16 | Config::Config() { | 17 | Config::Config() { |
| 17 | // TODO: Don't hardcode the path; let the frontend decide where to put the config files. | 18 | // TODO: Don't hardcode the path; let the frontend decide where to put the config files. |
diff --git a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp index e65b04e4b..7cbffba52 100644 --- a/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp +++ b/src/yuzu_cmd/emu_window/emu_window_sdl2.cpp | |||
| @@ -8,7 +8,6 @@ | |||
| 8 | #define SDL_MAIN_HANDLED | 8 | #define SDL_MAIN_HANDLED |
| 9 | #include <SDL.h> | 9 | #include <SDL.h> |
| 10 | #include <glad/glad.h> | 10 | #include <glad/glad.h> |
| 11 | #include "citra/emu_window/emu_window_sdl2.h" | ||
| 12 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| 13 | #include "common/scm_rev.h" | 12 | #include "common/scm_rev.h" |
| 14 | #include "common/string_util.h" | 13 | #include "common/string_util.h" |
| @@ -16,7 +15,8 @@ | |||
| 16 | #include "input_common/keyboard.h" | 15 | #include "input_common/keyboard.h" |
| 17 | #include "input_common/main.h" | 16 | #include "input_common/main.h" |
| 18 | #include "input_common/motion_emu.h" | 17 | #include "input_common/motion_emu.h" |
| 19 | #include "network/network.h" | 18 | #include "yuzu_cmd/emu_window/emu_window_sdl2.h" |
| 19 | |||
| 20 | 20 | ||
| 21 | void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) { | 21 | void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) { |
| 22 | TouchMoved((unsigned)std::max(x, 0), (unsigned)std::max(y, 0)); | 22 | TouchMoved((unsigned)std::max(x, 0), (unsigned)std::max(y, 0)); |
| @@ -59,7 +59,6 @@ void EmuWindow_SDL2::OnResize() { | |||
| 59 | 59 | ||
| 60 | EmuWindow_SDL2::EmuWindow_SDL2() { | 60 | EmuWindow_SDL2::EmuWindow_SDL2() { |
| 61 | InputCommon::Init(); | 61 | InputCommon::Init(); |
| 62 | Network::Init(); | ||
| 63 | 62 | ||
| 64 | SDL_SetMainReady(); | 63 | SDL_SetMainReady(); |
| 65 | 64 | ||
| @@ -116,7 +115,6 @@ EmuWindow_SDL2::~EmuWindow_SDL2() { | |||
| 116 | SDL_GL_DeleteContext(gl_context); | 115 | SDL_GL_DeleteContext(gl_context); |
| 117 | SDL_Quit(); | 116 | SDL_Quit(); |
| 118 | 117 | ||
| 119 | Network::Shutdown(); | ||
| 120 | InputCommon::Shutdown(); | 118 | InputCommon::Shutdown(); |
| 121 | } | 119 | } |
| 122 | 120 | ||
diff --git a/src/yuzu_cmd/citra.cpp b/src/yuzu_cmd/yuzu.cpp index e524c5535..5efbf3910 100644 --- a/src/yuzu_cmd/citra.cpp +++ b/src/yuzu_cmd/yuzu.cpp | |||
| @@ -24,8 +24,6 @@ | |||
| 24 | #include <shellapi.h> | 24 | #include <shellapi.h> |
| 25 | #endif | 25 | #endif |
| 26 | 26 | ||
| 27 | #include "citra/config.h" | ||
| 28 | #include "citra/emu_window/emu_window_sdl2.h" | ||
| 29 | #include "common/logging/backend.h" | 27 | #include "common/logging/backend.h" |
| 30 | #include "common/logging/filter.h" | 28 | #include "common/logging/filter.h" |
| 31 | #include "common/logging/log.h" | 29 | #include "common/logging/log.h" |
| @@ -36,6 +34,9 @@ | |||
| 36 | #include "core/gdbstub/gdbstub.h" | 34 | #include "core/gdbstub/gdbstub.h" |
| 37 | #include "core/loader/loader.h" | 35 | #include "core/loader/loader.h" |
| 38 | #include "core/settings.h" | 36 | #include "core/settings.h" |
| 37 | #include "yuzu_cmd/config.h" | ||
| 38 | #include "yuzu_cmd/emu_window/emu_window_sdl2.h" | ||
| 39 | |||
| 39 | 40 | ||
| 40 | static void PrintHelp(const char* argv0) { | 41 | static void PrintHelp(const char* argv0) { |
| 41 | std::cout << "Usage: " << argv0 | 42 | std::cout << "Usage: " << argv0 |
diff --git a/src/yuzu_cmd/citra.rc b/src/yuzu_cmd/yuzu.rc index c490ef302..7cb8a14e1 100644 --- a/src/yuzu_cmd/citra.rc +++ b/src/yuzu_cmd/yuzu.rc | |||
| @@ -6,7 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | // Icon with lowest ID value placed first to ensure application icon | 7 | // Icon with lowest ID value placed first to ensure application icon |
| 8 | // remains consistent on all systems. | 8 | // remains consistent on all systems. |
| 9 | CITRA_ICON ICON "../../dist/citra.ico" | 9 | CITRA_ICON ICON "../../dist/yuzu.ico" |
| 10 | 10 | ||
| 11 | 11 | ||
| 12 | ///////////////////////////////////////////////////////////////////////////// | 12 | ///////////////////////////////////////////////////////////////////////////// |
| @@ -14,4 +14,4 @@ CITRA_ICON ICON "../../dist/citra.ico" | |||
| 14 | // RT_MANIFEST | 14 | // RT_MANIFEST |
| 15 | // | 15 | // |
| 16 | 16 | ||
| 17 | 1 RT_MANIFEST "../../dist/citra.manifest" | 17 | 1 RT_MANIFEST "../../dist/yuzu.manifest" |