From fd893f730b0215eaaef8b06d60d178a71be5044c Mon Sep 17 00:00:00 2001 From: Ben Vanik Date: Fri, 17 Jul 2015 01:15:12 -0700 Subject: [PATCH] Shuffling files around. --- src/xenia/{ => app}/emulator_window.cc | 4 +++- src/xenia/{ => app}/emulator_window.h | 12 ++++++++---- src/xenia/{ui => app}/main_resources.rc | 0 src/xenia/{ => app}/xenia_main.cc | 6 ++++-- xenia.vcxproj | 8 ++++---- xenia.vcxproj.filters | 20 ++++++++++---------- 6 files changed, 29 insertions(+), 21 deletions(-) rename src/xenia/{ => app}/emulator_window.cc (98%) rename src/xenia/{ => app}/emulator_window.h (88%) rename src/xenia/{ui => app}/main_resources.rc (100%) rename src/xenia/{ => app}/xenia_main.cc (95%) diff --git a/src/xenia/emulator_window.cc b/src/xenia/app/emulator_window.cc similarity index 98% rename from src/xenia/emulator_window.cc rename to src/xenia/app/emulator_window.cc index 37853981c..cba05cd6a 100644 --- a/src/xenia/emulator_window.cc +++ b/src/xenia/app/emulator_window.cc @@ -7,7 +7,7 @@ ****************************************************************************** */ -#include "xenia/emulator_window.h" +#include "xenia/app/emulator_window.h" #include "xenia/base/clock.h" #include "xenia/base/logging.h" @@ -18,6 +18,7 @@ #include "xenia/profiling.h" namespace xe { +namespace app { using xe::ui::KeyEvent; using xe::ui::MenuItem; @@ -222,4 +223,5 @@ void EmulatorWindow::UpdateTitle() { window_->set_title(title); } +} // namespace app } // namespace xe diff --git a/src/xenia/emulator_window.h b/src/xenia/app/emulator_window.h similarity index 88% rename from src/xenia/emulator_window.h rename to src/xenia/app/emulator_window.h index 4db17764a..5e35380e6 100644 --- a/src/xenia/emulator_window.h +++ b/src/xenia/app/emulator_window.h @@ -7,8 +7,8 @@ ****************************************************************************** */ -#ifndef XENIA_EMULATOR_WINDOW_H_ -#define XENIA_EMULATOR_WINDOW_H_ +#ifndef XENIA_APP_EMULATOR_WINDOW_H_ +#define XENIA_APP_EMULATOR_WINDOW_H_ #include @@ -18,8 +18,11 @@ #include "xenia/xbox.h" namespace xe { - class Emulator; +} // namespace xe + +namespace xe { +namespace app { class EmulatorWindow { public: @@ -50,6 +53,7 @@ class EmulatorWindow { std::unique_ptr window_; }; +} // namespace app } // namespace xe -#endif // XENIA_EMULATOR_WINDOW_H_ +#endif // XENIA_APP_EMULATOR_WINDOW_H_ diff --git a/src/xenia/ui/main_resources.rc b/src/xenia/app/main_resources.rc similarity index 100% rename from src/xenia/ui/main_resources.rc rename to src/xenia/app/main_resources.rc diff --git a/src/xenia/xenia_main.cc b/src/xenia/app/xenia_main.cc similarity index 95% rename from src/xenia/xenia_main.cc rename to src/xenia/app/xenia_main.cc index 3994396c1..15bd5829b 100644 --- a/src/xenia/xenia_main.cc +++ b/src/xenia/app/xenia_main.cc @@ -9,10 +9,10 @@ #include +#include "xenia/app/emulator_window.h" #include "xenia/base/logging.h" #include "xenia/base/main.h" #include "xenia/emulator.h" -#include "xenia/emulator_window.h" #include "xenia/kernel/kernel.h" #include "xenia/profiling.h" #include "xenia/ui/file_picker.h" @@ -20,6 +20,7 @@ DEFINE_string(target, "", "Specifies the target .xex or .iso to execute."); namespace xe { +namespace app { int xenia_main(std::vector& args) { Profiler::Initialize(); @@ -97,6 +98,7 @@ int xenia_main(std::vector& args) { return 0; } +} // namespace app } // namespace xe -DEFINE_ENTRY_POINT(L"xenia", L"xenia some.xex", xe::xenia_main); +DEFINE_ENTRY_POINT(L"xenia", L"xenia some.xex", xe::app::xenia_main); diff --git a/xenia.vcxproj b/xenia.vcxproj index c327f1418..bcf261624 100644 --- a/xenia.vcxproj +++ b/xenia.vcxproj @@ -105,16 +105,16 @@ + + - - + - - + $(SolutionDir)third_party/elemental-forms;$(SolutionDir);. $(SolutionDir)third_party/elemental-forms;$(SolutionDir);. $(SolutionDir)third_party/elemental-forms;$(SolutionDir);. diff --git a/xenia.vcxproj.filters b/xenia.vcxproj.filters index 528be52b4..695007fc2 100644 --- a/xenia.vcxproj.filters +++ b/xenia.vcxproj.filters @@ -14,32 +14,32 @@ {a3d918ab-c42b-469d-9950-ec4656b77b32} - - {81255c06-3cf7-48ad-900a-f7c614d134ac} + + {2d31f471-6ba9-434c-88e6-5a4da1b4d67d} src\xenia\base - - src\xenia + + src\xenia\app - - src\xenia + + src\xenia\app src\xenia\base - - src\xenia + + src\xenia\app - - src\xenia\ui + + src\xenia\app \ No newline at end of file