diff options
| author | 2015-06-20 20:34:41 +0100 | |
|---|---|---|
| committer | 2015-06-28 00:36:53 +0100 | |
| commit | 79aa1b0808e8561560b58dab950ba4cd36e6aabb (patch) | |
| tree | 43199636ea7931eff5bc060d868737aeeb745b9d /src | |
| parent | Common: Remove now-unused EMU_PLATFORM define, fixes issue #373. (diff) | |
| download | yuzu-79aa1b0808e8561560b58dab950ba4cd36e6aabb.tar.gz yuzu-79aa1b0808e8561560b58dab950ba4cd36e6aabb.tar.xz yuzu-79aa1b0808e8561560b58dab950ba4cd36e6aabb.zip | |
Citra: Fix the includes a bit, thanks to include-what-you-use.
Diffstat (limited to '')
| -rw-r--r-- | src/citra/citra.cpp | 4 | ||||
| -rw-r--r-- | src/citra/config.cpp | 3 | ||||
| -rw-r--r-- | src/citra/config.h | 6 | ||||
| -rw-r--r-- | src/citra/emu_window/emu_window_glfw.cpp | 12 | ||||
| -rw-r--r-- | src/citra/emu_window/emu_window_glfw.h | 2 |
5 files changed, 19 insertions, 8 deletions
diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp index ce8d7dd25..a59726c78 100644 --- a/src/citra/citra.cpp +++ b/src/citra/citra.cpp | |||
| @@ -2,13 +2,11 @@ | |||
| 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 <thread> | 5 | #include <string> |
| 6 | 6 | ||
| 7 | #include "common/logging/log.h" | 7 | #include "common/logging/log.h" |
| 8 | #include "common/logging/text_formatter.h" | ||
| 9 | #include "common/logging/backend.h" | 8 | #include "common/logging/backend.h" |
| 10 | #include "common/logging/filter.h" | 9 | #include "common/logging/filter.h" |
| 11 | #include "common/scope_exit.h" | ||
| 12 | 10 | ||
| 13 | #include "core/settings.h" | 11 | #include "core/settings.h" |
| 14 | #include "core/system.h" | 12 | #include "core/system.h" |
diff --git a/src/citra/config.cpp b/src/citra/config.cpp index 1378567c1..506cb7939 100644 --- a/src/citra/config.cpp +++ b/src/citra/config.cpp | |||
| @@ -2,7 +2,9 @@ | |||
| 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 | #define GLFW_INCLUDE_NONE | ||
| 5 | #include <GLFW/glfw3.h> | 6 | #include <GLFW/glfw3.h> |
| 7 | #include <inih/cpp/INIReader.h> | ||
| 6 | 8 | ||
| 7 | #include "citra/default_ini.h" | 9 | #include "citra/default_ini.h" |
| 8 | 10 | ||
| @@ -10,7 +12,6 @@ | |||
| 10 | #include "common/logging/log.h" | 12 | #include "common/logging/log.h" |
| 11 | 13 | ||
| 12 | #include "core/settings.h" | 14 | #include "core/settings.h" |
| 13 | #include "core/core.h" | ||
| 14 | 15 | ||
| 15 | #include "config.h" | 16 | #include "config.h" |
| 16 | 17 | ||
diff --git a/src/citra/config.h b/src/citra/config.h index 0eb176c7d..c326ec669 100644 --- a/src/citra/config.h +++ b/src/citra/config.h | |||
| @@ -4,11 +4,9 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <map> | 7 | #include <string> |
| 8 | 8 | ||
| 9 | #include <inih/cpp/INIReader.h> | 9 | class INIReader; |
| 10 | |||
| 11 | #include "common/common_types.h" | ||
| 12 | 10 | ||
| 13 | class Config { | 11 | class Config { |
| 14 | INIReader* glfw_config; | 12 | INIReader* glfw_config; |
diff --git a/src/citra/emu_window/emu_window_glfw.cpp b/src/citra/emu_window/emu_window_glfw.cpp index 341b48d2a..42fb683a9 100644 --- a/src/citra/emu_window/emu_window_glfw.cpp +++ b/src/citra/emu_window/emu_window_glfw.cpp | |||
| @@ -2,13 +2,25 @@ | |||
| 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 <algorithm> | ||
| 6 | #include <cstdlib> | ||
| 7 | #include <string> | ||
| 8 | |||
| 9 | // Let’s use our own GL header, instead of one from GLFW. | ||
| 10 | #include "video_core/renderer_opengl/generated/gl_3_2_core.h" | ||
| 11 | #define GLFW_INCLUDE_NONE | ||
| 5 | #include <GLFW/glfw3.h> | 12 | #include <GLFW/glfw3.h> |
| 6 | 13 | ||
| 14 | #include "common/assert.h" | ||
| 15 | #include "common/key_map.h" | ||
| 7 | #include "common/logging/log.h" | 16 | #include "common/logging/log.h" |
| 17 | #include "common/scm_rev.h" | ||
| 18 | #include "common/string_util.h" | ||
| 8 | 19 | ||
| 9 | #include "video_core/video_core.h" | 20 | #include "video_core/video_core.h" |
| 10 | 21 | ||
| 11 | #include "core/settings.h" | 22 | #include "core/settings.h" |
| 23 | #include "core/hle/service/hid/hid.h" | ||
| 12 | 24 | ||
| 13 | #include "citra/emu_window/emu_window_glfw.h" | 25 | #include "citra/emu_window/emu_window_glfw.h" |
| 14 | 26 | ||
diff --git a/src/citra/emu_window/emu_window_glfw.h b/src/citra/emu_window/emu_window_glfw.h index 16c109b79..7ccd5e6aa 100644 --- a/src/citra/emu_window/emu_window_glfw.h +++ b/src/citra/emu_window/emu_window_glfw.h | |||
| @@ -4,6 +4,8 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | #include <utility> | ||
| 8 | |||
| 7 | #include "common/emu_window.h" | 9 | #include "common/emu_window.h" |
| 8 | 10 | ||
| 9 | struct GLFWwindow; | 11 | struct GLFWwindow; |