summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGravatar Lioncash2018-08-11 20:20:19 -0400
committerGravatar Lioncash2018-08-11 20:20:21 -0400
commit0a93b45b6a2662c69320e6c69f8024e26909a168 (patch)
treea16166777acb3d5af7915496827408e1ec7025bd /src/core
parentMerge pull request #1010 from bunnei/unk-vert-attrib-shader (diff)
downloadyuzu-0a93b45b6a2662c69320e6c69f8024e26909a168.tar.gz
yuzu-0a93b45b6a2662c69320e6c69f8024e26909a168.tar.xz
yuzu-0a93b45b6a2662c69320e6c69f8024e26909a168.zip
core: Namespace EmuWindow
Gets the class out of the global namespace.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/core.cpp4
-rw-r--r--src/core/core.h9
-rw-r--r--src/core/frontend/emu_window.cpp4
-rw-r--r--src/core/frontend/emu_window.h4
4 files changed, 16 insertions, 5 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp
index 6b8004eb2..83d4d742b 100644
--- a/src/core/core.cpp
+++ b/src/core/core.cpp
@@ -88,7 +88,7 @@ System::ResultStatus System::SingleStep() {
88 return RunLoop(false); 88 return RunLoop(false);
89} 89}
90 90
91System::ResultStatus System::Load(EmuWindow& emu_window, const std::string& filepath) { 91System::ResultStatus System::Load(Frontend::EmuWindow& emu_window, const std::string& filepath) {
92 app_loader = Loader::GetLoader(virtual_filesystem->OpenFile(filepath, FileSys::Mode::Read)); 92 app_loader = Loader::GetLoader(virtual_filesystem->OpenFile(filepath, FileSys::Mode::Read));
93 93
94 if (!app_loader) { 94 if (!app_loader) {
@@ -151,7 +151,7 @@ Cpu& System::CpuCore(size_t core_index) {
151 return *cpu_cores[core_index]; 151 return *cpu_cores[core_index];
152} 152}
153 153
154System::ResultStatus System::Init(EmuWindow& emu_window) { 154System::ResultStatus System::Init(Frontend::EmuWindow& emu_window) {
155 LOG_DEBUG(HW_Memory, "initialized OK"); 155 LOG_DEBUG(HW_Memory, "initialized OK");
156 156
157 CoreTiming::Init(); 157 CoreTiming::Init();
diff --git a/src/core/core.h b/src/core/core.h
index 2944b09cd..d98b15a71 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -22,9 +22,12 @@
22#include "video_core/debug_utils/debug_utils.h" 22#include "video_core/debug_utils/debug_utils.h"
23#include "video_core/gpu.h" 23#include "video_core/gpu.h"
24 24
25class EmuWindow;
26class ARM_Interface; 25class ARM_Interface;
27 26
27namespace Core::Frontend {
28class EmuWindow;
29}
30
28namespace Service::SM { 31namespace Service::SM {
29class ServiceManager; 32class ServiceManager;
30} 33}
@@ -99,7 +102,7 @@ public:
99 * @param filepath String path to the executable application to load on the host file system. 102 * @param filepath String path to the executable application to load on the host file system.
100 * @returns ResultStatus code, indicating if the operation succeeded. 103 * @returns ResultStatus code, indicating if the operation succeeded.
101 */ 104 */
102 ResultStatus Load(EmuWindow& emu_window, const std::string& filepath); 105 ResultStatus Load(Frontend::EmuWindow& emu_window, const std::string& filepath);
103 106
104 /** 107 /**
105 * Indicates if the emulated system is powered on (all subsystems initialized and able to run an 108 * Indicates if the emulated system is powered on (all subsystems initialized and able to run an
@@ -227,7 +230,7 @@ private:
227 * input. 230 * input.
228 * @return ResultStatus code, indicating if the operation succeeded. 231 * @return ResultStatus code, indicating if the operation succeeded.
229 */ 232 */
230 ResultStatus Init(EmuWindow& emu_window); 233 ResultStatus Init(Frontend::EmuWindow& emu_window);
231 234
232 /// RealVfsFilesystem instance 235 /// RealVfsFilesystem instance
233 FileSys::VirtualFilesystem virtual_filesystem; 236 FileSys::VirtualFilesystem virtual_filesystem;
diff --git a/src/core/frontend/emu_window.cpp b/src/core/frontend/emu_window.cpp
index 2d776c693..9dd493efb 100644
--- a/src/core/frontend/emu_window.cpp
+++ b/src/core/frontend/emu_window.cpp
@@ -8,6 +8,8 @@
8#include "core/frontend/input.h" 8#include "core/frontend/input.h"
9#include "core/settings.h" 9#include "core/settings.h"
10 10
11namespace Core::Frontend {
12
11class EmuWindow::TouchState : public Input::Factory<Input::TouchDevice>, 13class EmuWindow::TouchState : public Input::Factory<Input::TouchDevice>,
12 public std::enable_shared_from_this<TouchState> { 14 public std::enable_shared_from_this<TouchState> {
13public: 15public:
@@ -108,3 +110,5 @@ void EmuWindow::TouchMoved(unsigned framebuffer_x, unsigned framebuffer_y) {
108void EmuWindow::UpdateCurrentFramebufferLayout(unsigned width, unsigned height) { 110void EmuWindow::UpdateCurrentFramebufferLayout(unsigned width, unsigned height) {
109 NotifyFramebufferLayoutChanged(Layout::DefaultFrameLayout(width, height)); 111 NotifyFramebufferLayoutChanged(Layout::DefaultFrameLayout(width, height));
110} 112}
113
114} // namespace Core::Frontend
diff --git a/src/core/frontend/emu_window.h b/src/core/frontend/emu_window.h
index e8c29adfb..384dc7822 100644
--- a/src/core/frontend/emu_window.h
+++ b/src/core/frontend/emu_window.h
@@ -10,6 +10,8 @@
10#include "common/common_types.h" 10#include "common/common_types.h"
11#include "core/frontend/framebuffer_layout.h" 11#include "core/frontend/framebuffer_layout.h"
12 12
13namespace Core::Frontend {
14
13/** 15/**
14 * Abstraction class used to provide an interface between emulation code and the frontend 16 * Abstraction class used to provide an interface between emulation code and the frontend
15 * (e.g. SDL, QGLWidget, GLFW, etc...). 17 * (e.g. SDL, QGLWidget, GLFW, etc...).
@@ -166,3 +168,5 @@ private:
166 */ 168 */
167 std::tuple<unsigned, unsigned> ClipToTouchScreen(unsigned new_x, unsigned new_y); 169 std::tuple<unsigned, unsigned> ClipToTouchScreen(unsigned new_x, unsigned new_y);
168}; 170};
171
172} // namespace Core::Frontend