diff --git a/CMakeLists.txt b/CMakeLists.txt
index ac7dd0d476..cd162a0bdf 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -916,8 +916,6 @@ endif()
# SHARED on ANDROID, STATIC everywhere else
add_library(${CoreLibName} ${CoreLinkType}
${CoreExtra}
- Core/CPU.cpp
- Core/CPU.h
Core/Config.cpp
Core/Config.h
Core/Core.cpp
diff --git a/Core/CPU.cpp b/Core/CPU.cpp
deleted file mode 100644
index 923971085e..0000000000
--- a/Core/CPU.cpp
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2012- PPSSPP Project.
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, version 2.0 or later versions.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License 2.0 for more details.
-
-// A copy of the GPL 2.0 should have been included with the program.
-// If not, see http://www.gnu.org/licenses/
-
-// Official git repository and contact information can be found at
-// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
-
-
-#include "CPU.h"
-
-// See the MIPS folder, the real stuff is there.
-
-MIPSState *currentCPU = 0;
-
-int numCPUs;
diff --git a/Core/CPU.h b/Core/CPU.h
deleted file mode 100644
index ebc28caffb..0000000000
--- a/Core/CPU.h
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2012- PPSSPP Project.
-
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU General Public License as published by
-// the Free Software Foundation, version 2.0 or later versions.
-
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU General Public License 2.0 for more details.
-
-// A copy of the GPL 2.0 should have been included with the program.
-// If not, see http://www.gnu.org/licenses/
-
-// Official git repository and contact information can be found at
-// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
-
-#pragma once
-
-#include "../Globals.h"
-
-#include "MemMap.h"
-#include "Core.h"
-
-enum
-{
- GPR_SIZE_32=0,
- GPR_SIZE_64=1
-};
-
-#define MAX_NUM_CPU 2
-
-class MIPSState;
-
-extern MIPSState *currentCPU;
-extern int numCPUs;
diff --git a/Core/Core.cpp b/Core/Core.cpp
index f4064c4f75..2f2fbf15fe 100644
--- a/Core/Core.cpp
+++ b/Core/Core.cpp
@@ -29,6 +29,7 @@
#include "Core/SaveState.h"
#include "Core/System.h"
#include "Core/MIPS/MIPS.h"
+
#ifdef _WIN32
#include "Windows/OpenGLBase.h"
#include "Windows/InputDevice.h"
@@ -258,7 +259,6 @@ reswitch:
goto reswitch;
}
- currentCPU = &mipsr4k;
Core_SingleStep();
// update disasm dialog
#if defined(USING_QT_UI) || defined(_DEBUG)
diff --git a/Core/Core.vcxproj b/Core/Core.vcxproj
index 9a0941038d..51e2d85f90 100644
--- a/Core/Core.vcxproj
+++ b/Core/Core.vcxproj
@@ -168,7 +168,6 @@
-
@@ -437,7 +436,6 @@
-
diff --git a/Core/Core.vcxproj.filters b/Core/Core.vcxproj.filters
index 65e9c17a0e..e65f97e13f 100644
--- a/Core/Core.vcxproj.filters
+++ b/Core/Core.vcxproj.filters
@@ -249,9 +249,6 @@
Core
-
- Core
-
Core
@@ -714,9 +711,6 @@
Core
-
- Core
-
Core
diff --git a/Core/CwCheat.cpp b/Core/CwCheat.cpp
index e1154e4c13..33c6d29775 100644
--- a/Core/CwCheat.cpp
+++ b/Core/CwCheat.cpp
@@ -6,6 +6,8 @@
#include "Core/CwCheat.h"
#include "Core/Config.h"
#include "Core/MIPS/MIPS.h"
+#include "Core/ELF/ParamSFO.h"
+#include "Core/System.h"
static int CheatEvent = -1;
std::string gameTitle;
diff --git a/Core/Debugger/DebugInterface.h b/Core/Debugger/DebugInterface.h
index 12605c86b5..56a89529df 100644
--- a/Core/Debugger/DebugInterface.h
+++ b/Core/Debugger/DebugInterface.h
@@ -22,6 +22,11 @@
struct MemMap;
+enum {
+ GPR_SIZE_32,
+ GPR_SIZE_64,
+};
+
class DebugInterface
{
public:
diff --git a/Core/FileSystems/MetaFileSystem.cpp b/Core/FileSystems/MetaFileSystem.cpp
index 2975258b45..7c996e931c 100644
--- a/Core/FileSystems/MetaFileSystem.cpp
+++ b/Core/FileSystems/MetaFileSystem.cpp
@@ -539,15 +539,15 @@ size_t MetaFileSystem::SeekFile(u32 handle, s32 position, FileMove type)
int MetaFileSystem::ReadEntireFile(const std::string &filename, std::vector &data) {
int error = 0;
- u32 handle = pspFileSystem.OpenWithError(error, filename, FILEACCESS_READ);
+ u32 handle = OpenWithError(error, filename, FILEACCESS_READ);
if (handle == 0)
return error;
- size_t dataSize = (size_t)pspFileSystem.GetFileInfo(filename).size;
+ size_t dataSize = (size_t)GetFileInfo(filename).size;
data.resize(dataSize);
- size_t result = pspFileSystem.ReadFile(handle, (u8 *)&data[0], dataSize);
- pspFileSystem.CloseFile(handle);
+ size_t result = ReadFile(handle, (u8 *)&data[0], dataSize);
+ CloseFile(handle);
if (result != dataSize)
return SCE_KERNEL_ERROR_ERROR;
@@ -557,7 +557,7 @@ int MetaFileSystem::ReadEntireFile(const std::string &filename, std::vector
void MetaFileSystem::DoState(PointerWrap &p)
{
lock_guard guard(lock);
-
+
auto s = p.Section("MetaFileSystem", 1);
if (!s)
return;
diff --git a/Core/HLE/HLE.cpp b/Core/HLE/HLE.cpp
index 1746338f19..0b65e3b0f1 100644
--- a/Core/HLE/HLE.cpp
+++ b/Core/HLE/HLE.cpp
@@ -15,26 +15,30 @@
// Official git repository and contact information can be found at
// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
-#include "base/timeutil.h"
-#include "HLE.h"
#include