diff --git a/src/citra/citra.cpp b/src/citra/citra.cpp
index 746cf083d..37ea97403 100644
--- a/src/citra/citra.cpp
+++ b/src/citra/citra.cpp
@@ -22,17 +22,17 @@
* http://code.google.com/p/gekko-gc-emu/
*/
-#include "common.h"
-#include "log_manager.h"
-#include "file_util.h"
+#include "common/common.h"
+#include "common/log_manager.h"
+#include "common/file_util.h"
-#include "system.h"
-#include "core.h"
-#include "loader.h"
+#include "core/system.h"
+#include "core/core.h"
+#include "core/loader.h"
-#include "emu_window/emu_window_glfw.h"
+#include "citra/emu_window/emu_window_glfw.h"
-#include "citra.h"
+#include "citra/citra.h"
#define E_ERR -1
@@ -52,7 +52,7 @@ int __cdecl main(int argc, char **argv) {
System::Init(emu_window);
- std::string boot_filename = "homebrew.elf";
+ std::string boot_filename = "C:\\Users\\eric\\Desktop\\3ds\\homebrew\\Mandelbrot3DS.elf";
std::string error_str;
bool res = Loader::LoadFile(boot_filename, &error_str);
diff --git a/src/citra/citra.vcxproj b/src/citra/citra.vcxproj
index 16157ad04..4ea222fcd 100644
--- a/src/citra/citra.vcxproj
+++ b/src/citra/citra.vcxproj
@@ -199,20 +199,17 @@
-
-
+
+
+
+
-
-
-
+
-
-
-
-
+
diff --git a/src/citra/citra.vcxproj.filters b/src/citra/citra.vcxproj.filters
index f0b6906de..b41cdf146 100644
--- a/src/citra/citra.vcxproj.filters
+++ b/src/citra/citra.vcxproj.filters
@@ -1,28 +1,25 @@
-
-
-
- emu_window
-
-
-
-
-
-
-
- emu_window
-
-
-
-
-
{e3161526-9f53-4670-8dae-2be81ff01bc2}
-
+
+
+ emu_window
+
+
+
+
+
+
+
+ emu_window
+
+
+
+
\ No newline at end of file
diff --git a/src/citra/emu_window/emu_window_glfw.cpp b/src/citra/emu_window/emu_window_glfw.cpp
index 4cdb7fbb0..0192d8598 100644
--- a/src/citra/emu_window/emu_window_glfw.cpp
+++ b/src/citra/emu_window/emu_window_glfw.cpp
@@ -22,9 +22,9 @@
* http://code.google.com/p/gekko-gc-emu/
*/
-#include "common.h"
-#include "video_core.h"
-#include "emu_window_glfw.h"
+#include "common/common.h"
+#include "video_core/video_core.h"
+#include "citra/emu_window/emu_window_glfw.h"
static void OnKeyEvent(GLFWwindow* win, int key, int action) {
// EmuWindow_GLFW* emuwin = (EmuWindow_GLFW*)glfwGetWindowUserPointer(win);
diff --git a/src/citra/emu_window/emu_window_glfw.h b/src/citra/emu_window/emu_window_glfw.h
index abca9faa8..c3feb6e51 100644
--- a/src/citra/emu_window/emu_window_glfw.h
+++ b/src/citra/emu_window/emu_window_glfw.h
@@ -27,7 +27,7 @@
#include
#include
-#include "emu_window.h"
+#include "common/emu_window.h"
class EmuWindow_GLFW : public EmuWindow {
public:
diff --git a/src/citra_qt/citra_qt.vcxproj b/src/citra_qt/citra_qt.vcxproj
index 9164b280b..da8740bec 100644
--- a/src/citra_qt/citra_qt.vcxproj
+++ b/src/citra_qt/citra_qt.vcxproj
@@ -127,43 +127,21 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- src/config/ui_
-
-
-
-
-
+
+
+
+
+
+
+
+
+
-
@@ -173,6 +151,38 @@
{8aea7f29-3466-4786-a10d-6a4bd0610977}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/citra_qt/citra_qt.vcxproj.filters b/src/citra_qt/citra_qt.vcxproj.filters
index 3900cc8e0..5bc29c1d7 100644
--- a/src/citra_qt/citra_qt.vcxproj.filters
+++ b/src/citra_qt/citra_qt.vcxproj.filters
@@ -12,20 +12,6 @@
-
-
- debugger
-
-
- debugger
-
-
-
- debugger
-
-
- debugger
-
qhexedit
@@ -38,22 +24,29 @@
qhexedit
-
-
+
+
+
+
config
-
+
config
+
+ debugger
+
+
+ debugger
+
+
+ debugger
+
+
+ debugger
+
-
-
- debugger
-
-
- debugger
-
qhexedit
@@ -66,38 +59,67 @@
qhexedit
-
- debugger
-
-
- debugger
-
-
-
-
- config
-
-
- config
-
-
-
- debugger
-
-
- debugger
-
-
- debugger
-
-
-
+
+
+
+
+
+
+
+
+
config
+
+
+ config
+
+
+ config
+
+
+ debugger
+
+
+ debugger
+
+
+ debugger
+
+
+ debugger
+
+
+ debugger
+
+
+ debugger
+
+
+ debugger
+
+
+ debugger
+
+
+
+
+
+
+ config
+
+
+ debugger
+
+
+ debugger
+
+
+ debugger
-
+
\ No newline at end of file
diff --git a/src/common/atomic.h b/src/common/atomic.h
index 883bc14fb..ff2fb23d3 100644
--- a/src/common/atomic.h
+++ b/src/common/atomic.h
@@ -7,12 +7,12 @@
#ifdef _WIN32
-#include "atomic_win32.h"
+#include "common/atomic_win32.h"
#else
// GCC-compatible compiler assumed!
-#include "atomic_gcc.h"
+#include "common/atomic_gcc.h"
#endif
diff --git a/src/common/atomic_gcc.h b/src/common/atomic_gcc.h
index 2eb38697b..953c82c6c 100644
--- a/src/common/atomic_gcc.h
+++ b/src/common/atomic_gcc.h
@@ -5,7 +5,7 @@
#ifndef _ATOMIC_GCC_H_
#define _ATOMIC_GCC_H_
-#include "common.h"
+#include "common/common.h"
// Atomic operations are performed in a single step by the CPU. It is
// impossible for other threads to see the operation "half-done."
diff --git a/src/common/atomic_win32.h b/src/common/atomic_win32.h
index 760b16d4d..f8ec80520 100644
--- a/src/common/atomic_win32.h
+++ b/src/common/atomic_win32.h
@@ -5,7 +5,7 @@
#ifndef _ATOMIC_WIN32_H_
#define _ATOMIC_WIN32_H_
-#include "common.h"
+#include "common/common.h"
#include
#include
diff --git a/src/common/break_points.cpp b/src/common/break_points.cpp
index 787263f79..25d34a21a 100644
--- a/src/common/break_points.cpp
+++ b/src/common/break_points.cpp
@@ -2,9 +2,9 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
-#include "common.h"
-#include "debug_interface.h"
-#include "break_points.h"
+#include "common/common.h"
+#include "common/debug_interface.h"
+#include "common/break_points.h"
#include
#include
diff --git a/src/common/break_points.h b/src/common/break_points.h
index dc771ba01..46df34665 100644
--- a/src/common/break_points.h
+++ b/src/common/break_points.h
@@ -8,7 +8,7 @@
#include
#include
-#include "common.h"
+#include "common/common.h"
class DebugInterface;
diff --git a/src/common/chunk_file.h b/src/common/chunk_file.h
index 68c2943ab..a41205857 100644
--- a/src/common/chunk_file.h
+++ b/src/common/chunk_file.h
@@ -41,8 +41,8 @@
#endif
#endif
-#include "common.h"
-#include "file_util.h"
+#include "common/common.h"
+#include "common/file_util.h"
//#include "../ext/snappy/snappy-c.h"
#if defined(IOS) || defined(MACGNUSTD)
diff --git a/src/common/common.h b/src/common/common.h
index 3b71d9b3d..8795c8a0e 100644
--- a/src/common/common.h
+++ b/src/common/common.h
@@ -43,12 +43,12 @@ private:
};
#endif
-#include "log.h"
-#include "common_types.h"
-#include "msg_handler.h"
-#include "common_funcs.h"
-#include "common_paths.h"
-#include "platform.h"
+#include "common/log.h"
+#include "common/common_types.h"
+#include "common/msg_handler.h"
+#include "common/common_funcs.h"
+#include "common/common_paths.h"
+#include "common/platform.h"
#ifdef __APPLE__
// The Darwin ABI requires that stack frames be aligned to 16-byte boundaries.
diff --git a/src/common/common.vcxproj b/src/common/common.vcxproj
index f9033fa57..32d735a09 100644
--- a/src/common/common.vcxproj
+++ b/src/common/common.vcxproj
@@ -146,67 +146,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -214,6 +153,66 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/common/common.vcxproj.filters b/src/common/common.vcxproj.filters
index ccc15d613..3bdaa973f 100644
--- a/src/common/common.vcxproj.filters
+++ b/src/common/common.vcxproj.filters
@@ -1,64 +1,63 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/src/common/common_paths.h b/src/common/common_paths.h
index 9ccb87d82..252e93fa9 100644
--- a/src/common/common_paths.h
+++ b/src/common/common_paths.h
@@ -6,7 +6,7 @@
#define _COMMON_PATHS_H_
// Make sure we pick up USER_DIR if set in config.h
-#include "common.h"
+#include "common/common.h"
// Directory seperators, do we need this?
#define DIR_SEP "/"
diff --git a/src/common/common_types.h b/src/common/common_types.h
index af1cd0e21..4289b88d3 100644
--- a/src/common/common_types.h
+++ b/src/common/common_types.h
@@ -62,7 +62,7 @@ typedef signed long long s64; ///< 64-bit signed int
typedef float f32; ///< 32-bit floating point
typedef double f64; ///< 64-bit floating point
-#include "swap.h"
+#include "common/swap.h"
/// Union for fast 16-bit type casting
union t16 {
diff --git a/src/common/console_listener.cpp b/src/common/console_listener.cpp
index 270ad9ce9..b5f32d1bd 100644
--- a/src/common/console_listener.cpp
+++ b/src/common/console_listener.cpp
@@ -13,9 +13,9 @@
#include
#endif
-#include "common.h"
-#include "log_manager.h" // Common
-#include "console_listener.h" // Common
+#include "common/common.h"
+#include "common/log_manager.h" // Common
+#include "common/console_listener.h" // Common
ConsoleListener::ConsoleListener()
{
diff --git a/src/common/console_listener.h b/src/common/console_listener.h
index a2936050d..224d17017 100644
--- a/src/common/console_listener.h
+++ b/src/common/console_listener.h
@@ -5,7 +5,7 @@
#ifndef _CONSOLELISTENER_H
#define _CONSOLELISTENER_H
-#include "log_manager.h"
+#include "common/log_manager.h"
#ifdef _WIN32
#include
diff --git a/src/common/emu_window.h b/src/common/emu_window.h
index f49367057..7f68c9237 100644
--- a/src/common/emu_window.h
+++ b/src/common/emu_window.h
@@ -25,7 +25,7 @@
#ifndef CORE_EMUWINDOW_H_
#define CORE_EMUWINDOW_H_
-#include "common.h"
+#include "common/common.h"
//namespace input_common
//{
diff --git a/src/common/extended_trace.cpp b/src/common/extended_trace.cpp
index 9f717dba3..77425bd0d 100644
--- a/src/common/extended_trace.cpp
+++ b/src/common/extended_trace.cpp
@@ -16,8 +16,8 @@
#include
#include
-#include "extended_trace.h"
-#include "string_util.h"
+#include "common/extended_trace.h"
+#include "common/string_util.h"
using namespace std;
#include
diff --git a/src/common/fifo_queue.h b/src/common/fifo_queue.h
index 57efcd839..4e80f53b4 100644
--- a/src/common/fifo_queue.h
+++ b/src/common/fifo_queue.h
@@ -5,7 +5,7 @@
// a simple lockless thread-safe,
// single reader, single writer queue
-#include "atomic.h"
+#include "common/atomic.h"
namespace Common
{
diff --git a/src/common/file_search.cpp b/src/common/file_search.cpp
index 59f640109..a9d19477d 100644
--- a/src/common/file_search.cpp
+++ b/src/common/file_search.cpp
@@ -3,8 +3,8 @@
// Refer to the license.txt file included.
-#include "common.h"
-#include "common_paths.h"
+#include "common/common.h"
+#include "common/common_paths.h"
#ifndef _WIN32
#include
#include
@@ -15,9 +15,8 @@
#include
#include
-#include "file_search.h"
-
-#include "string_util.h"
+#include "common/file_search.h"
+#include "common/string_util.h"
CFileSearch::CFileSearch(const CFileSearch::XStringVector& _rSearchStrings, const CFileSearch::XStringVector& _rDirectories)
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 8b47cb3e5..d36304d91 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -3,10 +3,10 @@
// Refer to the license.txt file included.
-#include "common.h"
-#include "common_paths.h"
-#include "file_util.h"
-#include "string_util.h"
+#include "common/common.h"
+#include "common/common_paths.h"
+#include "common/file_util.h"
+#include "common/string_util.h"
#ifdef _WIN32
#include
@@ -32,7 +32,7 @@
#include
#include
-#include "string_util.h"
+#include "common/string_util.h"
#ifndef S_ISDIR
#define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR)
diff --git a/src/common/file_util.h b/src/common/file_util.h
index f4ef949d8..5edb43f6a 100644
--- a/src/common/file_util.h
+++ b/src/common/file_util.h
@@ -12,8 +12,8 @@
#include
#include
-#include "common.h"
-#include "string_util.h"
+#include "common/common.h"
+#include "common/string_util.h"
// User directory indices for GetUserPath
enum {
diff --git a/src/common/hash.cpp b/src/common/hash.cpp
index 5303f07b5..d2ebc7341 100644
--- a/src/common/hash.cpp
+++ b/src/common/hash.cpp
@@ -3,9 +3,9 @@
// Refer to the license.txt file included.
-#include "hash.h"
+#include "common/hash.h"
#if _M_SSE >= 0x402
-#include "cpu_detect.h"
+#include "common/cpu_detect.h"
#include
#endif
diff --git a/src/common/hash.h b/src/common/hash.h
index addfa4b5f..c69908415 100644
--- a/src/common/hash.h
+++ b/src/common/hash.h
@@ -6,7 +6,7 @@
#ifndef _HASH_H_
#define _HASH_H_
-#include "common.h"
+#include "common/common.h"
u32 HashFletcher(const u8* data_u8, size_t length); // FAST. Length & 1 == 0.
u32 HashAdler32(const u8* data, size_t len); // Fairly accurate, slightly slower
diff --git a/src/common/linear_disk_cache.h b/src/common/linear_disk_cache.h
index da5d6b9b4..a24687615 100644
--- a/src/common/linear_disk_cache.h
+++ b/src/common/linear_disk_cache.h
@@ -6,7 +6,7 @@
#ifndef _LINEAR_DISKCACHE
#define _LINEAR_DISKCACHE
-#include "common.h"
+#include "common/common.h"
#include
// defined in Version.cpp
diff --git a/src/common/log_manager.cpp b/src/common/log_manager.cpp
index b5b034846..245760d0d 100644
--- a/src/common/log_manager.cpp
+++ b/src/common/log_manager.cpp
@@ -4,14 +4,11 @@
#include
-#ifdef ANDROID
-#include "Host.h"
-#endif
-#include "log_manager.h"
-#include "console_listener.h"
-#include "timer.h"
-#include "thread.h"
-#include "file_util.h"
+#include "common/log_manager.h"
+#include "common/console_listener.h"
+#include "common/timer.h"
+#include "common/thread.h"
+#include "common/file_util.h"
void GenericLog(LogTypes::LOG_LEVELS level, LogTypes::LOG_TYPE type,
const char *file, int line, const char* fmt, ...)
diff --git a/src/common/log_manager.h b/src/common/log_manager.h
index 579198ff6..580860b4d 100644
--- a/src/common/log_manager.h
+++ b/src/common/log_manager.h
@@ -5,10 +5,10 @@
#ifndef _LOGMANAGER_H_
#define _LOGMANAGER_H_
-#include "log.h"
-#include "string_util.h"
-#include "thread.h"
-#include "file_util.h"
+#include "common/log.h"
+#include "common/string_util.h"
+#include "common/thread.h"
+#include "common/file_util.h"
#include
#include
diff --git a/src/common/math_util.cpp b/src/common/math_util.cpp
index da90f8d74..82eceab00 100644
--- a/src/common/math_util.cpp
+++ b/src/common/math_util.cpp
@@ -3,8 +3,8 @@
// Refer to the license.txt file included.
-#include "common.h"
-#include "math_util.h"
+#include "common/common.h"
+#include "common/math_util.h"
#include
#include
diff --git a/src/common/math_util.h b/src/common/math_util.h
index 4410c5e01..9167d2012 100644
--- a/src/common/math_util.h
+++ b/src/common/math_util.h
@@ -6,7 +6,7 @@
#ifndef _MATH_UTIL_H_
#define _MATH_UTIL_H_
-#include "common.h"
+#include "common/common.h"
#include
diff --git a/src/common/mem_arena.cpp b/src/common/mem_arena.cpp
index 1a6fcf44d..b918eb568 100644
--- a/src/common/mem_arena.cpp
+++ b/src/common/mem_arena.cpp
@@ -17,12 +17,10 @@
#include
-#include "memory_util.h"
-#include "mem_arena.h"
+#include "common/memory_util.h"
+#include "common/mem_arena.h"
-#ifdef _WIN32
-//#include "CommonWindows.h"
-#else
+#ifndef _WIN32
#include
#include
#include
diff --git a/src/common/mem_arena.h b/src/common/mem_arena.h
index 8bdf9f189..667efbea9 100644
--- a/src/common/mem_arena.h
+++ b/src/common/mem_arena.h
@@ -26,7 +26,7 @@
#include
#endif
-#include "common.h"
+#include "common/common.h"
// This class lets you create a block of anonymous RAM, and then arbitrarily map views into it.
// Multiple views can mirror the same section of the block, which makes it very convient for emulating
diff --git a/src/common/memory_util.cpp b/src/common/memory_util.cpp
index cc6e77b35..71ef159c3 100644
--- a/src/common/memory_util.cpp
+++ b/src/common/memory_util.cpp
@@ -3,9 +3,9 @@
// Refer to the license.txt file included.
-#include "common.h"
-#include "memory_util.h"
-#include "string_util.h"
+#include "common/common.h"
+#include "common/memory_util.h"
+#include "common/string_util.h"
#ifdef _WIN32
#include
diff --git a/src/common/misc.cpp b/src/common/misc.cpp
index 935805478..cf6df44e8 100644
--- a/src/common/misc.cpp
+++ b/src/common/misc.cpp
@@ -2,7 +2,7 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
-#include "common.h"
+#include "common/common.h"
#ifdef _WIN32
#include
diff --git a/src/common/msg_handler.cpp b/src/common/msg_handler.cpp
index 8e9fe218e..c1386cdaa 100644
--- a/src/common/msg_handler.cpp
+++ b/src/common/msg_handler.cpp
@@ -4,8 +4,8 @@
#include // System
-#include "common.h" // Local
-#include "string_util.h"
+#include "common/common.h" // Local
+#include "common/string_util.h"
bool DefaultMsgHandler(const char* caption, const char* text, bool yes_no, int Style);
static MsgAlertHandler msg_handler = DefaultMsgHandler;
diff --git a/src/common/platform.h b/src/common/platform.h
index 84c6b6365..633f1d694 100644
--- a/src/common/platform.h
+++ b/src/common/platform.h
@@ -25,7 +25,7 @@
#ifndef COMMON_PLATFORM_H_
#define COMMON_PLATFORM_H_
-#include "common_types.h"
+#include "common/common_types.h"
////////////////////////////////////////////////////////////////////////////////////////////////////
// Platform definitions
diff --git a/src/common/scm_rev_gen.vcxproj b/src/common/scm_rev_gen.vcxproj
index d2d9b7fbb..6b81c9055 100644
--- a/src/common/scm_rev_gen.vcxproj
+++ b/src/common/scm_rev_gen.vcxproj
@@ -19,12 +19,11 @@
-
-
+
+
-
-
+
{69F00340-5C3D-449F-9A80-958435C6CF06}
diff --git a/src/common/std_condition_variable.h b/src/common/std_condition_variable.h
index cee7a9dcd..8964b4f6f 100644
--- a/src/common/std_condition_variable.h
+++ b/src/common/std_condition_variable.h
@@ -29,7 +29,7 @@
// partial std::condition_variable implementation for win32/pthread
-#include "std_mutex.h"
+#include "common/std_mutex.h"
#if (_MSC_VER >= 1600) || (GCC_VERSION >= GCC_VER(4,3,0) && __GXX_EXPERIMENTAL_CXX0X__)
#define USE_RVALUE_REFERENCES
diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp
index 415dcbbc7..a99644f11 100644
--- a/src/common/string_util.cpp
+++ b/src/common/string_util.cpp
@@ -6,9 +6,9 @@
#include
#include
-#include "common.h"
-#include "common_paths.h"
-#include "string_util.h"
+#include "common/common.h"
+#include "common/common_paths.h"
+#include "common/string_util.h"
#ifdef _WIN32
#include
diff --git a/src/common/string_util.h b/src/common/string_util.h
index fcbae4715..6b7e84797 100644
--- a/src/common/string_util.h
+++ b/src/common/string_util.h
@@ -12,7 +12,7 @@
#include
#include
-#include "common.h"
+#include "common/common.h"
std::string StringFromFormat(const char* format, ...);
// Cheap!
diff --git a/src/common/thread.cpp b/src/common/thread.cpp
index 27dbf3f93..c70ee37cf 100644
--- a/src/common/thread.cpp
+++ b/src/common/thread.cpp
@@ -2,8 +2,8 @@
// Licensed under GPLv2
// Refer to the license.txt file included.
-#include "thread.h"
-#include "common.h"
+#include "common/thread.h"
+#include "common/common.h"
#ifdef __APPLE__
#include
diff --git a/src/common/thread.h b/src/common/thread.h
index 6384a44a1..d72ac7b47 100644
--- a/src/common/thread.h
+++ b/src/common/thread.h
@@ -5,12 +5,12 @@
#ifndef _THREAD_H_
#define _THREAD_H_
-#include "std_condition_variable.h"
-#include "std_mutex.h"
-#include "std_thread.h"
+#include "common/std_condition_variable.h"
+#include "common/std_mutex.h"
+#include "common/std_thread.h"
// Don't include common.h here as it will break LogManager
-#include "common_types.h"
+#include "common/common_types.h"
#include
#include
diff --git a/src/common/thunk.h b/src/common/thunk.h
index c9e6fd39f..2c2f23cd0 100644
--- a/src/common/thunk.h
+++ b/src/common/thunk.h
@@ -7,8 +7,7 @@
#include