diff options
| author | 2021-04-14 16:07:40 -0700 | |
|---|---|---|
| committer | 2021-04-14 16:24:03 -0700 | |
| commit | a4c6712a4be249bf668df7f0ff83a0a5236283b2 (patch) | |
| tree | f05e183692b6b1e4096d285fb77db50f048ae82d /src/input_common | |
| parent | core: settings: Add setting for debug assertions and disable by default. (diff) | |
| download | yuzu-a4c6712a4be249bf668df7f0ff83a0a5236283b2.tar.gz yuzu-a4c6712a4be249bf668df7f0ff83a0a5236283b2.tar.xz yuzu-a4c6712a4be249bf668df7f0ff83a0a5236283b2.zip | |
common: Move settings to common from core.
- Removes a dependency on core and input_common from common.
Diffstat (limited to '')
| -rw-r--r-- | src/common/settings_input.cpp (renamed from src/input_common/settings.cpp) | 2 | ||||
| -rw-r--r-- | src/common/settings_input.h (renamed from src/input_common/settings.h) | 1 | ||||
| -rw-r--r-- | src/input_common/CMakeLists.txt | 2 | ||||
| -rwxr-xr-x | src/input_common/analog_from_button.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/gcadapter/gc_adapter.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/mouse/mouse_input.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/mouse/mouse_poller.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/sdl/sdl_impl.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/touch_from_button.cpp | 2 | ||||
| -rw-r--r-- | src/input_common/udp/client.cpp | 2 |
10 files changed, 9 insertions, 10 deletions
diff --git a/src/input_common/settings.cpp b/src/common/settings_input.cpp index 557e7a9a0..bea2b837b 100644 --- a/src/input_common/settings.cpp +++ b/src/common/settings_input.cpp | |||
| @@ -2,7 +2,7 @@ | |||
| 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 "input_common/settings.h" | 5 | #include "common/settings_input.h" |
| 6 | 6 | ||
| 7 | namespace Settings { | 7 | namespace Settings { |
| 8 | namespace NativeButton { | 8 | namespace NativeButton { |
diff --git a/src/input_common/settings.h b/src/common/settings_input.h index a59f5d461..609600582 100644 --- a/src/input_common/settings.h +++ b/src/common/settings_input.h | |||
| @@ -6,6 +6,7 @@ | |||
| 6 | 6 | ||
| 7 | #include <array> | 7 | #include <array> |
| 8 | #include <string> | 8 | #include <string> |
| 9 | |||
| 9 | #include "common/common_types.h" | 10 | #include "common/common_types.h" |
| 10 | 11 | ||
| 11 | namespace Settings { | 12 | namespace Settings { |
diff --git a/src/input_common/CMakeLists.txt b/src/input_common/CMakeLists.txt index 38ab31898..c3cfe7efc 100644 --- a/src/input_common/CMakeLists.txt +++ b/src/input_common/CMakeLists.txt | |||
| @@ -9,8 +9,6 @@ add_library(input_common STATIC | |||
| 9 | motion_from_button.h | 9 | motion_from_button.h |
| 10 | motion_input.cpp | 10 | motion_input.cpp |
| 11 | motion_input.h | 11 | motion_input.h |
| 12 | settings.cpp | ||
| 13 | settings.h | ||
| 14 | touch_from_button.cpp | 12 | touch_from_button.cpp |
| 15 | touch_from_button.h | 13 | touch_from_button.h |
| 16 | gcadapter/gc_adapter.cpp | 14 | gcadapter/gc_adapter.cpp |
diff --git a/src/input_common/analog_from_button.cpp b/src/input_common/analog_from_button.cpp index 770893687..f8ec179d0 100755 --- a/src/input_common/analog_from_button.cpp +++ b/src/input_common/analog_from_button.cpp | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | #include <cmath> | 7 | #include <cmath> |
| 8 | #include <thread> | 8 | #include <thread> |
| 9 | #include "common/math_util.h" | 9 | #include "common/math_util.h" |
| 10 | #include "core/settings.h" | 10 | #include "common/settings.h" |
| 11 | #include "input_common/analog_from_button.h" | 11 | #include "input_common/analog_from_button.h" |
| 12 | 12 | ||
| 13 | namespace InputCommon { | 13 | namespace InputCommon { |
diff --git a/src/input_common/gcadapter/gc_adapter.cpp b/src/input_common/gcadapter/gc_adapter.cpp index d80195c82..ec3167bea 100644 --- a/src/input_common/gcadapter/gc_adapter.cpp +++ b/src/input_common/gcadapter/gc_adapter.cpp | |||
| @@ -16,8 +16,8 @@ | |||
| 16 | 16 | ||
| 17 | #include "common/logging/log.h" | 17 | #include "common/logging/log.h" |
| 18 | #include "common/param_package.h" | 18 | #include "common/param_package.h" |
| 19 | #include "common/settings_input.h" | ||
| 19 | #include "input_common/gcadapter/gc_adapter.h" | 20 | #include "input_common/gcadapter/gc_adapter.h" |
| 20 | #include "input_common/settings.h" | ||
| 21 | 21 | ||
| 22 | namespace GCAdapter { | 22 | namespace GCAdapter { |
| 23 | 23 | ||
diff --git a/src/input_common/mouse/mouse_input.cpp b/src/input_common/mouse/mouse_input.cpp index 329e416c7..fff1c6b45 100644 --- a/src/input_common/mouse/mouse_input.cpp +++ b/src/input_common/mouse/mouse_input.cpp | |||
| @@ -2,7 +2,7 @@ | |||
| 2 | // Licensed under GPLv2+ | 2 | // Licensed under GPLv2+ |
| 3 | // Refer to the license.txt file included. | 3 | // Refer to the license.txt file included. |
| 4 | 4 | ||
| 5 | #include "core/settings.h" | 5 | #include "common/settings.h" |
| 6 | #include "input_common/mouse/mouse_input.h" | 6 | #include "input_common/mouse/mouse_input.h" |
| 7 | 7 | ||
| 8 | namespace MouseInput { | 8 | namespace MouseInput { |
diff --git a/src/input_common/mouse/mouse_poller.cpp b/src/input_common/mouse/mouse_poller.cpp index 0e1db54fb..d96104a4e 100644 --- a/src/input_common/mouse/mouse_poller.cpp +++ b/src/input_common/mouse/mouse_poller.cpp | |||
| @@ -5,8 +5,8 @@ | |||
| 5 | #include <mutex> | 5 | #include <mutex> |
| 6 | #include <utility> | 6 | #include <utility> |
| 7 | 7 | ||
| 8 | #include "common/settings.h" | ||
| 8 | #include "common/threadsafe_queue.h" | 9 | #include "common/threadsafe_queue.h" |
| 9 | #include "core/settings.h" | ||
| 10 | #include "input_common/mouse/mouse_input.h" | 10 | #include "input_common/mouse/mouse_input.h" |
| 11 | #include "input_common/mouse/mouse_poller.h" | 11 | #include "input_common/mouse/mouse_poller.h" |
| 12 | 12 | ||
diff --git a/src/input_common/sdl/sdl_impl.cpp b/src/input_common/sdl/sdl_impl.cpp index f67de37e3..8bca71731 100644 --- a/src/input_common/sdl/sdl_impl.cpp +++ b/src/input_common/sdl/sdl_impl.cpp | |||
| @@ -20,11 +20,11 @@ | |||
| 20 | #include <SDL.h> | 20 | #include <SDL.h> |
| 21 | #include "common/logging/log.h" | 21 | #include "common/logging/log.h" |
| 22 | #include "common/param_package.h" | 22 | #include "common/param_package.h" |
| 23 | #include "common/settings_input.h" | ||
| 23 | #include "common/threadsafe_queue.h" | 24 | #include "common/threadsafe_queue.h" |
| 24 | #include "core/frontend/input.h" | 25 | #include "core/frontend/input.h" |
| 25 | #include "input_common/motion_input.h" | 26 | #include "input_common/motion_input.h" |
| 26 | #include "input_common/sdl/sdl_impl.h" | 27 | #include "input_common/sdl/sdl_impl.h" |
| 27 | #include "input_common/settings.h" | ||
| 28 | 28 | ||
| 29 | namespace InputCommon::SDL { | 29 | namespace InputCommon::SDL { |
| 30 | 30 | ||
diff --git a/src/input_common/touch_from_button.cpp b/src/input_common/touch_from_button.cpp index ffbe4f2ed..e94ba197b 100644 --- a/src/input_common/touch_from_button.cpp +++ b/src/input_common/touch_from_button.cpp | |||
| @@ -2,8 +2,8 @@ | |||
| 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 "common/settings.h" | ||
| 5 | #include "core/frontend/framebuffer_layout.h" | 6 | #include "core/frontend/framebuffer_layout.h" |
| 6 | #include "core/settings.h" | ||
| 7 | #include "input_common/touch_from_button.h" | 7 | #include "input_common/touch_from_button.h" |
| 8 | 8 | ||
| 9 | namespace InputCommon { | 9 | namespace InputCommon { |
diff --git a/src/input_common/udp/client.cpp b/src/input_common/udp/client.cpp index e72df924b..8a38a380d 100644 --- a/src/input_common/udp/client.cpp +++ b/src/input_common/udp/client.cpp | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | #include <thread> | 9 | #include <thread> |
| 10 | #include <boost/asio.hpp> | 10 | #include <boost/asio.hpp> |
| 11 | #include "common/logging/log.h" | 11 | #include "common/logging/log.h" |
| 12 | #include "core/settings.h" | 12 | #include "common/settings.h" |
| 13 | #include "input_common/udp/client.h" | 13 | #include "input_common/udp/client.h" |
| 14 | #include "input_common/udp/protocol.h" | 14 | #include "input_common/udp/protocol.h" |
| 15 | 15 | ||