From de0a034a849f5a1cbe2fed9ef2cc4095c56e672a Mon Sep 17 00:00:00 2001 From: bunnei Date: Tue, 8 Apr 2014 20:15:08 -0400 Subject: fixed project includes to use new directory structure --- src/core/arm/arm_interface.h | 4 +- src/core/arm/disassembler/arm_disasm.cpp | 3 +- src/core/arm/interpreter/arm_interpreter.h | 9 +- src/core/arm/interpreter/armcpu.h | 2 +- src/core/arm/interpreter/armdefs.h | 4 +- src/core/arm/interpreter/armemu.h | 2 +- src/core/arm/interpreter/arminit.cpp | 2 +- src/core/arm/interpreter/armmmu.h | 20 +-- src/core/arm/interpreter/skyeye_defs.h | 2 +- src/core/arm/mmu/arm1176jzf_s_mmu.cpp | 6 +- src/core/core.cpp | 14 +- src/core/core.h | 4 +- src/core/core.vcxproj | 98 +++++++------- src/core/core.vcxproj.filters | 203 ++++++++++++++-------------- src/core/core_timing.cpp | 13 +- src/core/core_timing.h | 2 +- src/core/elf/elf_reader.cpp | 7 +- src/core/elf/elf_reader.h | 2 +- src/core/file_sys/directory_file_system.cpp | 12 +- src/core/file_sys/directory_file_system.h | 7 +- src/core/file_sys/file_sys.h | 4 +- src/core/file_sys/meta_file_system.cpp | 7 +- src/core/file_sys/meta_file_system.h | 5 +- src/core/hw/hw.cpp | 8 +- src/core/hw/hw.h | 2 +- src/core/hw/hw_lcd.cpp | 11 +- src/core/hw/hw_lcd.h | 2 +- src/core/loader.cpp | 14 +- src/core/loader.h | 2 +- src/core/mem_map.cpp | 8 +- src/core/mem_map.h | 4 +- src/core/mem_map_funcs.cpp | 6 +- src/core/system.cpp | 13 +- src/core/system.h | 4 +- 34 files changed, 255 insertions(+), 251 deletions(-) (limited to 'src/core') diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h index eee2f6240..e5df2d971 100644 --- a/src/core/arm/arm_interface.h +++ b/src/core/arm/arm_interface.h @@ -4,8 +4,8 @@ #pragma once -#include "common.h" -#include "common_types.h" +#include "common/common.h" +#include "common/common_types.h" /// Generic ARM11 CPU interface class ARM_Interface { diff --git a/src/core/arm/disassembler/arm_disasm.cpp b/src/core/arm/disassembler/arm_disasm.cpp index 82ca5ee8d..db1567498 100644 --- a/src/core/arm/disassembler/arm_disasm.cpp +++ b/src/core/arm/disassembler/arm_disasm.cpp @@ -2,7 +2,8 @@ #include #include -#include "arm_disasm.h" + +#include "core/arm/disassembler/arm_disasm.h" static const char *cond_names[] = { "eq", diff --git a/src/core/arm/interpreter/arm_interpreter.h b/src/core/arm/interpreter/arm_interpreter.h index 074149f1b..03b781c6d 100644 --- a/src/core/arm/interpreter/arm_interpreter.h +++ b/src/core/arm/interpreter/arm_interpreter.h @@ -24,12 +24,11 @@ #pragma once -#include "common.h" -#include "common_types.h" -#include "arm/arm_interface.h" +#include "common/common.h" -#include "arm/interpreter/armdefs.h" -#include "arm/interpreter/armemu.h" +#include "core/arm/arm_interface.h" +#include "core/arm/interpreter/armdefs.h" +#include "core/arm/interpreter/armemu.h" class ARM_Interpreter : virtual public ARM_Interface { public: diff --git a/src/core/arm/interpreter/armcpu.h b/src/core/arm/interpreter/armcpu.h index d7e336b94..6b5ea8566 100644 --- a/src/core/arm/interpreter/armcpu.h +++ b/src/core/arm/interpreter/armcpu.h @@ -28,7 +28,7 @@ #include #include -#include "thread.h" +#include "common/thread.h" typedef struct ARM_CPU_State_s { diff --git a/src/core/arm/interpreter/armdefs.h b/src/core/arm/interpreter/armdefs.h index 0136a52d2..30b5b689c 100644 --- a/src/core/arm/interpreter/armdefs.h +++ b/src/core/arm/interpreter/armdefs.h @@ -32,7 +32,7 @@ //#include "portable/mman.h" #include "arm_regformat.h" -#include "platform.h" +#include "common/platform.h" #include "skyeye_defs.h" //AJ2D-------------------------------------------------------------------------- @@ -82,7 +82,7 @@ //teawater add DBCT_TEST_SPEED 2005.10.04--------------------------------------- #include -#include "platform.h" +#include "common/platform.h" #if EMU_PLATFORM == PLATFORM_LINUX #include diff --git a/src/core/arm/interpreter/armemu.h b/src/core/arm/interpreter/armemu.h index 2ab317fdd..7391dea7f 100644 --- a/src/core/arm/interpreter/armemu.h +++ b/src/core/arm/interpreter/armemu.h @@ -17,7 +17,7 @@ #ifndef __ARMEMU_H__ #define __ARMEMU_H__ -#include "common.h" +#include "common/common.h" #include "armdefs.h" //#include "skyeye.h" diff --git a/src/core/arm/interpreter/arminit.cpp b/src/core/arm/interpreter/arminit.cpp index f48232eec..cdbd02f3c 100644 --- a/src/core/arm/interpreter/arminit.cpp +++ b/src/core/arm/interpreter/arminit.cpp @@ -16,7 +16,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#include "platform.h" +#include "common/platform.h" #if EMU_PLATFORM == PLATFORM_LINUX #include #endif diff --git a/src/core/arm/interpreter/armmmu.h b/src/core/arm/interpreter/armmmu.h index c28d8753e..8b24e6151 100644 --- a/src/core/arm/interpreter/armmmu.h +++ b/src/core/arm/interpreter/armmmu.h @@ -172,18 +172,18 @@ typedef struct mmu_ops_s } mmu_ops_t; -#include "arm/mmu/tlb.h" -#include "arm/mmu/rb.h" -#include "arm/mmu/wb.h" -#include "arm/mmu/cache.h" +#include "core/arm/mmu/tlb.h" +#include "core/arm/mmu/rb.h" +#include "core/arm/mmu/wb.h" +#include "core/arm/mmu/cache.h" /*special process mmu.h*/ -//#include "arm/mmu/sa_mmu.h" -//#include "arm/mmu/arm7100_mmu.h" -//#include "arm/mmu/arm920t_mmu.h" -//#include "arm/mmu/arm926ejs_mmu.h" -#include "arm/mmu/arm1176jzf_s_mmu.h" -//#include "arm/mmu/cortex_a9_mmu.h" +//#include "core/arm/mmu/sa_mmu.h" +//#include "core/arm/mmu/arm7100_mmu.h" +//#include "core/arm/mmu/arm920t_mmu.h" +//#include "core/arm/mmu/arm926ejs_mmu.h" +#include "core/arm/mmu/arm1176jzf_s_mmu.h" +//#include "core/arm/mmu/cortex_a9_mmu.h" typedef struct mmu_state_t { diff --git a/src/core/arm/interpreter/skyeye_defs.h b/src/core/arm/interpreter/skyeye_defs.h index 6562e595a..b6713ebad 100644 --- a/src/core/arm/interpreter/skyeye_defs.h +++ b/src/core/arm/interpreter/skyeye_defs.h @@ -1,7 +1,7 @@ #ifndef CORE_ARM_SKYEYE_DEFS_H_ #define CORE_ARM_SKYEYE_DEFS_H_ -#include "common.h" +#include "common/common.h" #define MODE32 #define MODET diff --git a/src/core/arm/mmu/arm1176jzf_s_mmu.cpp b/src/core/arm/mmu/arm1176jzf_s_mmu.cpp index 0a3206abb..7e7fbfbfa 100644 --- a/src/core/arm/mmu/arm1176jzf_s_mmu.cpp +++ b/src/core/arm/mmu/arm1176jzf_s_mmu.cpp @@ -22,11 +22,11 @@ #include #include -#include "mem_map.h" +#include "core/mem_map.h" -#include "arm/interpreter/skyeye_defs.h" +#include "core/arm/interpreter/skyeye_defs.h" -#include "arm/interpreter/armdefs.h" +#include "core/arm/interpreter/armdefs.h" //#include "bank_defs.h" #if 0 #define TLB_SIZE 1024 * 1024 diff --git a/src/core/core.cpp b/src/core/core.cpp index 540b20f27..28f6b6c58 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -2,12 +2,14 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include "log.h" -#include "core.h" -#include "mem_map.h" -#include "hw/hw.h" -#include "arm/disassembler/arm_disasm.h" -#include "arm/interpreter/arm_interpreter.h" +#include "common/common_types.h" +#include "common/log.h" +#include "core/core.h" + +#include "core/mem_map.h" +#include "core/hw/hw.h" +#include "core/arm/disassembler/arm_disasm.h" +#include "core/arm/interpreter/arm_interpreter.h" namespace Core { diff --git a/src/core/core.h b/src/core/core.h index bae9f3e3d..4b42dabcb 100644 --- a/src/core/core.h +++ b/src/core/core.h @@ -4,8 +4,8 @@ #pragma once -#include "arm/arm_interface.h" -#include "arm/interpreter/armdefs.h" +#include "core/arm/arm_interface.h" +#include "core/arm/interpreter/armdefs.h" //////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/core/core.vcxproj b/src/core/core.vcxproj index 2edb51214..1800b5512 100644 --- a/src/core/core.vcxproj +++ b/src/core/core.vcxproj @@ -137,59 +137,59 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/src/core/core.vcxproj.filters b/src/core/core.vcxproj.filters index 0cd208dd6..2efac8127 100644 --- a/src/core/core.vcxproj.filters +++ b/src/core/core.vcxproj.filters @@ -1,158 +1,155 @@  - - + + {b84ab55c-588b-45f0-a5ba-f9ebb0442f13} + + + {61100188-a726-4024-ab16-95ee242b446e} + + + {a64d3c8a-747a-491b-b782-6e2622bedf24} + + + {7f618562-73d1-4f55-9628-887497c27654} + + + {cca8b763-8a80-4478-9bcc-3c979293c357} + + + {d1158fc4-3e0f-431f-9d3b-f30bbfeb4ad5} + + + {7ae34319-6d72-4d12-bc62-9b438ba9241f} + + + + arm\disassembler - - - - - file_sys - - - file_sys - - - - - elf - - - arm\mmu - - + arm\interpreter - + arm\interpreter - + arm\interpreter - + arm\interpreter - + arm\interpreter - + arm\interpreter - + arm\interpreter - + arm\interpreter - + + arm\mmu + + + file_sys + + + file_sys + + hw - + hw + + elf + + + + + + + - - {b84ab55c-588b-45f0-a5ba-f9ebb0442f13} - - - {61100188-a726-4024-ab16-95ee242b446e} - - - {a64d3c8a-747a-491b-b782-6e2622bedf24} - - - {7f618562-73d1-4f55-9628-887497c27654} - - - {671d3218-3771-4218-b142-1f9a1cc24a51} - - - {794616f8-739f-4643-9c3f-869e50831d4f} - - - {cca8b763-8a80-4478-9bcc-3c979293c357} - - - {d1158fc4-3e0f-431f-9d3b-f30bbfeb4ad5} - - - - + arm\disassembler - - - + + arm\interpreter + + + arm\interpreter + + + arm\interpreter + + + arm\interpreter + + + arm\interpreter + + + arm\interpreter + + + arm\interpreter + + + arm\interpreter + + arm\mmu - + arm\mmu - + arm\mmu - + arm\mmu - + arm\mmu - - + file_sys - + file_sys - + file_sys - - - - elf - - - elf - - - arm\interpreter - - - arm\interpreter - - - arm\interpreter - - - arm\interpreter + + hw - - arm\interpreter + + hw - - arm\interpreter + + elf - - arm\interpreter + + elf - + arm - - arm\interpreter - - - hw - - - hw - + + + + + - + \ No newline at end of file diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index 78bbaafe2..a4fc0aaa4 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -5,12 +5,13 @@ #include #include -#include "msg_handler.h" -#include "std_mutex.h" -#include "atomic.h" -#include "core_timing.h" -#include "core.h" -#include "chunk_file.h" +#include "common/msg_handler.h" +#include "common/std_mutex.h" +#include "common/atomic.h" +#include "common/chunk_file.h" + +#include "core/core_timing.h" +#include "core/core.h" int g_clock_rate_arm11 = 268123480; diff --git a/src/core/core_timing.h b/src/core/core_timing.h index b62acea6c..09fdf7a90 100644 --- a/src/core/core_timing.h +++ b/src/core/core_timing.h @@ -17,7 +17,7 @@ // inside callback: // ScheduleEvent(periodInCycles - cyclesLate, callback, "whatever") -#include "common.h" +#include "common/common.h" class PointerWrap; diff --git a/src/core/elf/elf_reader.cpp b/src/core/elf/elf_reader.cpp index aef7c13e9..2b03caa0f 100644 --- a/src/core/elf/elf_reader.cpp +++ b/src/core/elf/elf_reader.cpp @@ -4,10 +4,11 @@ #include -#include "common.h" -#include "mem_map.h" +#include "common/common.h" + +#include "core/mem_map.h" +#include "core/elf/elf_reader.h" -#include "elf/elf_reader.h" //#include "Core/Debugger/Debugger_SymbolMap.h" //#include "Core/HW/Memmap.h" //#include "Core/PowerPC/PPCSymbolDB.h" diff --git a/src/core/elf/elf_reader.h b/src/core/elf/elf_reader.h index 9393a589d..3e2869f87 100644 --- a/src/core/elf/elf_reader.h +++ b/src/core/elf/elf_reader.h @@ -4,7 +4,7 @@ #pragma once -#include "elf/elf_types.h" +#include "core/elf/elf_types.h" enum KnownElfTypes { diff --git a/src/core/file_sys/directory_file_system.cpp b/src/core/file_sys/directory_file_system.cpp index 29369eec4..6c6f33c2b 100644 --- a/src/core/file_sys/directory_file_system.cpp +++ b/src/core/file_sys/directory_file_system.cpp @@ -15,13 +15,11 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. -#include "chunk_file.h" -#include "file_util.h" -#include "directory_file_system.h" -//#include "ISOFileSystem.h" -//#include "Core/HLE/sceKernel.h" -//#include "file/zip_read.h" -#include "utf8.h" +#include "common/chunk_file.h" +#include "common/file_util.h" +#include "common/utf8.h" + +#include "core/file_sys/directory_file_system.h" #if EMU_PLATFORM == PLATFORM_WINDOWS #include diff --git a/src/core/file_sys/directory_file_system.h b/src/core/file_sys/directory_file_system.h index a11331a27..9af2854a2 100644 --- a/src/core/file_sys/directory_file_system.h +++ b/src/core/file_sys/directory_file_system.h @@ -15,14 +15,13 @@ // Official git repository and contact information can be found at // https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/. -#ifndef CORE_FILE_SYS_DIRECTORY_H_ -#define CORE_FILE_SYS_DIRECTORY_H_ +#pragma once // TODO: Remove the Windows-specific code, FILE is fine there too. #include -#include "file_sys.h" +#include "core/file_sys/file_sys.h" #ifdef _WIN32 typedef void * HANDLE; @@ -154,5 +153,3 @@ private: std::string GetLocalPath(std::string localpath); }; - -#endif // CORE_FILE_SYS_DIRECTORY_H_ diff --git a/src/core/file_sys/file_sys.h b/src/core/file_sys/file_sys.h index b27e36c80..bb8503e62 100644 --- a/src/core/file_sys/file_sys.h +++ b/src/core/file_sys/file_sys.h @@ -17,8 +17,8 @@ #pragma once -#include "common.h" -#include "chunk_file.h" +#include "common/common.h" +#include "common/chunk_file.h" enum FileAccess { FILEACCESS_NONE=0, diff --git a/src/core/file_sys/meta_file_system.cpp b/src/core/file_sys/meta_file_system.cpp index f86c3cb18..01048e498 100644 --- a/src/core/file_sys/meta_file_system.cpp +++ b/src/core/file_sys/meta_file_system.cpp @@ -17,10 +17,9 @@ #include #include -#include "string_util.h" -#include "file_sys/meta_file_system.h" -//#include "Core/HLE/sceKernelThread.h" -//#include "Core/Reporting.h" + +#include "common/string_util.h" +#include "core/file_sys/meta_file_system.h" static bool ApplyPathStringToComponentsVector(std::vector &vector, const std::string &pathString) { diff --git a/src/core/file_sys/meta_file_system.h b/src/core/file_sys/meta_file_system.h index 0de23d49c..961f75cda 100644 --- a/src/core/file_sys/meta_file_system.h +++ b/src/core/file_sys/meta_file_system.h @@ -17,8 +17,9 @@ #pragma once -#include "std_mutex.h" -#include "file_sys.h" +#include "common/std_mutex.h" + +#include "core/file_sys/file_sys.h" class MetaFileSystem : public IHandleAllocator, public IFileSystem { diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cpp index 57be4d6a8..44625e3af 100644 --- a/src/core/hw/hw.cpp +++ b/src/core/hw/hw.cpp @@ -2,9 +2,11 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include "log.h" -#include "hw/hw.h" -#include "hw/hw_lcd.h" +#include "common/common_types.h" +#include "common/log.h" + +#include "core/hw/hw.h" +#include "core/hw/hw_lcd.h" namespace HW { diff --git a/src/core/hw/hw.h b/src/core/hw/hw.h index 5b0cc8c87..92e9304ca 100644 --- a/src/core/hw/hw.h +++ b/src/core/hw/hw.h @@ -4,7 +4,7 @@ #pragma once -#include "common_types.h" +#include "common/common_types.h" namespace HW { diff --git a/src/core/hw/hw_lcd.cpp b/src/core/hw/hw_lcd.cpp index ad346c794..fd783a84a 100644 --- a/src/core/hw/hw_lcd.cpp +++ b/src/core/hw/hw_lcd.cpp @@ -2,10 +2,13 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include "log.h" -#include "core.h" -#include "hw_lcd.h" -#include "video_core.h" +#include "common/common_types.h" +#include "common/log.h" + +#include "core/core.h" +#include "core/hw/hw_lcd.h" + +#include "video_core/video_core.h" namespace LCD { diff --git a/src/core/hw/hw_lcd.h b/src/core/hw/hw_lcd.h index 30e347ccb..386ed6004 100644 --- a/src/core/hw/hw_lcd.h +++ b/src/core/hw/hw_lcd.h @@ -4,7 +4,7 @@ #pragma once -#include "common_types.h" +#include "common/common_types.h" namespace LCD { diff --git a/src/core/loader.cpp b/src/core/loader.cpp index 5d039dc94..8c6d54a68 100644 --- a/src/core/loader.cpp +++ b/src/core/loader.cpp @@ -2,12 +2,14 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include "file_util.h" -#include "loader.h" -#include "system.h" -#include "core.h" -#include "file_sys/directory_file_system.h" -#include "elf/elf_reader.h" +#include "common/common_types.h" +#include "common/file_util.h" + +#include "core/loader.h" +#include "core/system.h" +#include "core/core.h" +#include "core/file_sys/directory_file_system.h" +#include "core/elf/elf_reader.h" //////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/core/loader.h b/src/core/loader.h index 46525fcf8..3dd8c471d 100644 --- a/src/core/loader.h +++ b/src/core/loader.h @@ -4,7 +4,7 @@ #pragma once -#include "common.h" +#include "common/common.h" //////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/core/mem_map.cpp b/src/core/mem_map.cpp index 96f77d32e..96f8d0440 100644 --- a/src/core/mem_map.cpp +++ b/src/core/mem_map.cpp @@ -2,11 +2,11 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include "common.h" -#include "mem_arena.h" +#include "common/common.h" +#include "common/mem_arena.h" -#include "mem_map.h" -#include "core.h" +#include "core/mem_map.h" +#include "core/core.h" //////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/core/mem_map.h b/src/core/mem_map.h index ad5abd16d..1a3bd7234 100644 --- a/src/core/mem_map.h +++ b/src/core/mem_map.h @@ -6,8 +6,8 @@ //////////////////////////////////////////////////////////////////////////////////////////////////// -#include "common.h" -#include "common_types.h" +#include "common/common.h" +#include "common/common_types.h" //////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/src/core/mem_map_funcs.cpp b/src/core/mem_map_funcs.cpp index 7d8ae2915..4c0e08b3f 100644 --- a/src/core/mem_map_funcs.cpp +++ b/src/core/mem_map_funcs.cpp @@ -2,10 +2,10 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include "common.h" +#include "common/common.h" -#include "mem_map.h" -#include "hw/hw.h" +#include "core/mem_map.h" +#include "core/hw/hw.h" namespace Memory { diff --git a/src/core/system.cpp b/src/core/system.cpp index 1fc272d70..edb07fef5 100644 --- a/src/core/system.cpp +++ b/src/core/system.cpp @@ -2,12 +2,13 @@ // Licensed under GPLv2 // Refer to the license.txt file included. -#include "core.h" -#include "hw/hw.h" -#include "core_timing.h" -#include "mem_map.h" -#include "system.h" -#include "video_core.h" +#include "core/core.h" +#include "core/core_timing.h" +#include "core/mem_map.h" +#include "core/system.h" +#include "core/hw/hw.h" + +#include "video_core/video_core.h" namespace System { diff --git a/src/core/system.h b/src/core/system.h index 8e94e5252..09f1f6ebe 100644 --- a/src/core/system.h +++ b/src/core/system.h @@ -4,8 +4,8 @@ #pragma once -#include "emu_window.h" -#include "file_sys/meta_file_system.h" +#include "common/emu_window.h" +#include "core/file_sys/meta_file_system.h" //////////////////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3