diff options
| author | 2016-09-21 00:21:23 +0900 | |
|---|---|---|
| committer | 2016-09-21 11:15:47 +0900 | |
| commit | ebdae19fd226104baec712b9da9939ff82ef3c3a (patch) | |
| tree | e046c0f562fc4400480b2e3257f140e973a9ce6a /src/citra | |
| parent | Manually tweak source formatting and then re-run clang-format (diff) | |
| download | yuzu-ebdae19fd226104baec712b9da9939ff82ef3c3a.tar.gz yuzu-ebdae19fd226104baec712b9da9939ff82ef3c3a.tar.xz yuzu-ebdae19fd226104baec712b9da9939ff82ef3c3a.zip | |
Remove empty newlines in #include blocks.
This makes clang-format useful on those.
Also add a bunch of forgotten transitive includes, which otherwise
prevented compilation.
Diffstat (limited to 'src/citra')
| -rw-r--r-- | src/citra/citra.cpp | 7 | ||||
| -rw-r--r-- | src/citra/config.cpp | 10 | ||||
| -rw-r--r-- | src/citra/config.h | 1 | ||||
| -rw-r--r-- | src/citra/emu_window/emu_window_sdl2.cpp | 8 | ||||
| -rw-r--r-- | src/citra/emu_window/emu_window_sdl2.h | 1 |
5 files changed, 5 insertions, 22 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index 1b8f8cffe..e47375f88 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp | |||
| @@ -21,22 +21,19 @@ | |||
| 21 | #include <Windows.h> | 21 | #include <Windows.h> |
| 22 | #endif | 22 | #endif |
| 23 | 23 | ||
| 24 | #include "citra/config.h" | ||
| 25 | #include "citra/emu_window/emu_window_sdl2.h" | ||
| 24 | #include "common/logging/backend.h" | 26 | #include "common/logging/backend.h" |
| 25 | #include "common/logging/filter.h" | 27 | #include "common/logging/filter.h" |
| 26 | #include "common/logging/log.h" | 28 | #include "common/logging/log.h" |
| 27 | #include "common/scm_rev.h" | 29 | #include "common/scm_rev.h" |
| 28 | #include "common/scope_exit.h" | 30 | #include "common/scope_exit.h" |
| 29 | #include "common/string_util.h" | 31 | #include "common/string_util.h" |
| 30 | |||
| 31 | #include "core/core.h" | 32 | #include "core/core.h" |
| 32 | #include "core/gdbstub/gdbstub.h" | 33 | #include "core/gdbstub/gdbstub.h" |
| 33 | #include "core/loader/loader.h" | 34 | #include "core/loader/loader.h" |
| 34 | #include "core/settings.h" | 35 | #include "core/settings.h" |
| 35 | #include "core/system.h" | 36 | #include "core/system.h" |
| 36 | |||
| 37 | #include "citra/config.h" | ||
| 38 | #include "citra/emu_window/emu_window_sdl2.h" | ||
| 39 | |||
| 40 | #include "video_core/video_core.h" | 37 | #include "video_core/video_core.h" |
| 41 | 38 | ||
| 42 | static void PrintHelp(const char* argv0) { | 39 | static void PrintHelp(const char* argv0) { |
diff --git a/src/citra/config.cpp b/src/citra/config.cpp index 77679bd88..58aef7a9a 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp | |||
| @@ -2,21 +2,15 @@ | |||
| 2 | // Licensed under GPLv2 or any later version | 2 | // Licensed under GPLv2 or any later version |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "config.h" | ||
| 5 | #include <memory> | 6 | #include <memory> |
| 6 | |||
| 7 | #include <inih/cpp/INIReader.h> | ||
| 8 | |||
| 9 | #include <SDL.h> | 7 | #include <SDL.h> |
| 10 | 8 | #include <inih/cpp/INIReader.h> | |
| 11 | #include "citra/default_ini.h" | 9 | #include "citra/default_ini.h" |
| 12 | |||
| 13 | #include "common/file_util.h" | 10 | #include "common/file_util.h" |
| 14 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| 15 | |||
| 16 | #include "core/settings.h" | 12 | #include "core/settings.h" |
| 17 | 13 | ||
| 18 | #include "config.h" | ||
| 19 | |||
| 20 | Config::Config() { | 14 | Config::Config() { |
| 21 | // TODO: Don't hardcode the path; let the frontend decide where to put the config files. | 15 | // TODO: Don't hardcode the path; let the frontend decide where to put the config files. |
| 22 | sdl2_config_loc = FileUtil::GetUserPath(D_CONFIG_IDX) + "sdl2-config.ini"; | 16 | sdl2_config_loc = FileUtil::GetUserPath(D_CONFIG_IDX) + "sdl2-config.ini"; |
diff --git a/src/citra/config.h b/src/citra/config.h index 8bd2b294b..b1c31f59c 100644 --- a/src/citra/config.h +++ b/src/citra/config.h | |||
| @@ -6,7 +6,6 @@ | |||
| 6 | 6 | ||
| 7 | #include <memory> | 7 | #include <memory> |
| 8 | #include <string> | 8 | #include <string> |
| 9 | |||
| 10 | #include <inih/cpp/INIReader.h> | 9 | #include <inih/cpp/INIReader.h> |
| 11 | 10 | ||
| 12 | class Config { | 11 | class Config { |
diff --git a/src/citra/emu_window/emu_window_sdl2.cpp b/src/citra/emu_window/emu_window_sdl2.cpp index 42f2a7553..7df054208 100644 --- a/src/citra/emu_window/emu_window_sdl2.cpp +++ b/src/citra/emu_window/emu_window_sdl2.cpp | |||
| @@ -5,22 +5,16 @@ | |||
| 5 | #include <algorithm> | 5 | #include <algorithm> |
| 6 | #include <cstdlib> | 6 | #include <cstdlib> |
| 7 | #include <string> | 7 | #include <string> |
| 8 | |||
| 9 | #define SDL_MAIN_HANDLED | 8 | #define SDL_MAIN_HANDLED |
| 10 | #include <SDL.h> | 9 | #include <SDL.h> |
| 11 | |||
| 12 | #include <glad/glad.h> | 10 | #include <glad/glad.h> |
| 13 | 11 | #include "citra/emu_window/emu_window_sdl2.h" | |
| 14 | #include "common/key_map.h" | 12 | #include "common/key_map.h" |
| 15 | #include "common/logging/log.h" | 13 | #include "common/logging/log.h" |
| 16 | #include "common/scm_rev.h" | 14 | #include "common/scm_rev.h" |
| 17 | #include "common/string_util.h" | 15 | #include "common/string_util.h" |
| 18 | |||
| 19 | #include "core/hle/service/hid/hid.h" | 16 | #include "core/hle/service/hid/hid.h" |
| 20 | #include "core/settings.h" | 17 | #include "core/settings.h" |
| 21 | |||
| 22 | #include "citra/emu_window/emu_window_sdl2.h" | ||
| 23 | |||
| 24 | #include "video_core/video_core.h" | 18 | #include "video_core/video_core.h" |
| 25 | 19 | ||
| 26 | void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) { | 20 | void EmuWindow_SDL2::OnMouseMotion(s32 x, s32 y) { |
diff --git a/src/citra/emu_window/emu_window_sdl2.h b/src/citra/emu_window/emu_window_sdl2.h index d4d86821d..e4d14ef12 100644 --- a/src/citra/emu_window/emu_window_sdl2.h +++ b/src/citra/emu_window/emu_window_sdl2.h | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <utility> | 7 | #include <utility> |
| 8 | |||
| 9 | #include "common/emu_window.h" | 8 | #include "common/emu_window.h" |
| 10 | 9 | ||
| 11 | struct SDL_Window; | 10 | struct SDL_Window; |