mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 05:19:56 +00:00
Some include cleanup, delete some obsolete code
This commit is contained in:
parent
e9e16210e8
commit
5926886c0c
@ -5,10 +5,8 @@
|
|||||||
<ClInclude Include="Common.h" />
|
<ClInclude Include="Common.h" />
|
||||||
<ClInclude Include="CommonFuncs.h" />
|
<ClInclude Include="CommonFuncs.h" />
|
||||||
<ClInclude Include="CommonTypes.h" />
|
<ClInclude Include="CommonTypes.h" />
|
||||||
<ClInclude Include="ConsoleListener.h" />
|
|
||||||
<ClInclude Include="CPUDetect.h" />
|
<ClInclude Include="CPUDetect.h" />
|
||||||
<ClInclude Include="Log.h" />
|
<ClInclude Include="Log.h" />
|
||||||
<ClInclude Include="Log\LogManager.h" />
|
|
||||||
<ClInclude Include="MemArena.h" />
|
<ClInclude Include="MemArena.h" />
|
||||||
<ClInclude Include="MemoryUtil.h" />
|
<ClInclude Include="MemoryUtil.h" />
|
||||||
<ClInclude Include="StringUtils.h" />
|
<ClInclude Include="StringUtils.h" />
|
||||||
@ -560,15 +558,20 @@
|
|||||||
<ClInclude Include="Render\Text\draw_text_cocoa.h">
|
<ClInclude Include="Render\Text\draw_text_cocoa.h">
|
||||||
<Filter>Render\Text</Filter>
|
<Filter>Render\Text</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="Log\StdioListener.h" />
|
||||||
|
<ClInclude Include="Log\ConsoleListener.h">
|
||||||
|
<Filter>Log</Filter>
|
||||||
|
</ClInclude>
|
||||||
|
<ClInclude Include="Log\LogManager.h">
|
||||||
|
<Filter>Log</Filter>
|
||||||
|
</ClInclude>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="ABI.cpp" />
|
<ClCompile Include="ABI.cpp" />
|
||||||
<ClCompile Include="Log\ConsoleListener.cpp" />
|
|
||||||
<ClCompile Include="Log\StdioListener.cpp" />
|
<ClCompile Include="Log\StdioListener.cpp" />
|
||||||
<ClCompile Include="CPUDetect.cpp" />
|
<ClCompile Include="CPUDetect.cpp" />
|
||||||
<ClCompile Include="FakeCPUDetect.cpp" />
|
<ClCompile Include="FakeCPUDetect.cpp" />
|
||||||
<ClCompile Include="MipsCPUDetect.cpp" />
|
<ClCompile Include="MipsCPUDetect.cpp" />
|
||||||
<ClCompile Include="Log\LogManager.cpp" />
|
|
||||||
<ClCompile Include="MemoryUtil.cpp" />
|
<ClCompile Include="MemoryUtil.cpp" />
|
||||||
<ClCompile Include="StringUtils.cpp" />
|
<ClCompile Include="StringUtils.cpp" />
|
||||||
<ClCompile Include="Thunk.cpp" />
|
<ClCompile Include="Thunk.cpp" />
|
||||||
@ -1045,6 +1048,12 @@
|
|||||||
<ClCompile Include="..\ext\at3_standalone\compat.cpp">
|
<ClCompile Include="..\ext\at3_standalone\compat.cpp">
|
||||||
<Filter>ext\at3_standalone</Filter>
|
<Filter>ext\at3_standalone</Filter>
|
||||||
</ClCompile>
|
</ClCompile>
|
||||||
|
<ClCompile Include="Log\ConsoleListener.cpp">
|
||||||
|
<Filter>Log</Filter>
|
||||||
|
</ClCompile>
|
||||||
|
<ClCompile Include="Log\LogManager.cpp">
|
||||||
|
<Filter>Log</Filter>
|
||||||
|
</ClCompile>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Filter Include="Crypto">
|
<Filter Include="Crypto">
|
||||||
@ -1161,6 +1170,9 @@
|
|||||||
<Filter Include="ext\at3_standalone">
|
<Filter Include="ext\at3_standalone">
|
||||||
<UniqueIdentifier>{586da66e-922a-4479-9dac-9d608a1b9183}</UniqueIdentifier>
|
<UniqueIdentifier>{586da66e-922a-4479-9dac-9d608a1b9183}</UniqueIdentifier>
|
||||||
</Filter>
|
</Filter>
|
||||||
|
<Filter Include="Log">
|
||||||
|
<UniqueIdentifier>{cb2c7c09-1177-4a1e-962c-5cc7bcb56789}</UniqueIdentifier>
|
||||||
|
</Filter>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Text Include="..\ext\libpng17\CMakeLists.txt">
|
<Text Include="..\ext\libpng17\CMakeLists.txt">
|
||||||
@ -1208,4 +1220,4 @@
|
|||||||
<Filter>Render\Text</Filter>
|
<Filter>Render\Text</Filter>
|
||||||
</None>
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
@ -62,7 +62,17 @@
|
|||||||
|
|
||||||
#include "Common/Serialize/SerializeFuncs.h"
|
#include "Common/Serialize/SerializeFuncs.h"
|
||||||
#include "Common/TimeUtil.h"
|
#include "Common/TimeUtil.h"
|
||||||
|
|
||||||
|
#include "Core/HLE/sceKernelThread.h"
|
||||||
|
#include "Core/HLE/sceKernel.h"
|
||||||
|
#include "Core/HLE/sceKernelMutex.h"
|
||||||
|
#include "Core/HLE/sceUtility.h"
|
||||||
|
|
||||||
|
#include "Core/MemMap.h"
|
||||||
|
#include "Core/HLE/HLE.h"
|
||||||
|
#include "Core/HLE/HLEHelperThread.h"
|
||||||
#include "Core/Config.h"
|
#include "Core/Config.h"
|
||||||
|
#include "Core/CoreTiming.h"
|
||||||
#include "Core/Core.h"
|
#include "Core/Core.h"
|
||||||
#include "Core/HLE/sceKernelInterrupt.h"
|
#include "Core/HLE/sceKernelInterrupt.h"
|
||||||
#include "Core/HLE/sceKernelThread.h"
|
#include "Core/HLE/sceKernelThread.h"
|
||||||
|
@ -39,17 +39,11 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <climits>
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <thread>
|
|
||||||
|
|
||||||
#include "Common/Net/Resolve.h"
|
#include "Common/Net/Resolve.h"
|
||||||
#include "Common/Serialize/Serializer.h"
|
#include "Common/Serialize/Serializer.h"
|
||||||
|
|
||||||
#include "Core/CoreTiming.h"
|
|
||||||
#include "Core/MemMap.h"
|
#include "Core/MemMap.h"
|
||||||
#include "Core/HLE/HLE.h"
|
|
||||||
#include "Core/HLE/HLEHelperThread.h"
|
|
||||||
#include "Core/HLE/sceKernelThread.h"
|
#include "Core/HLE/sceKernelThread.h"
|
||||||
#include "Core/HLE/sceKernel.h"
|
#include "Core/HLE/sceKernel.h"
|
||||||
#include "Core/HLE/sceKernelMutex.h"
|
#include "Core/HLE/sceKernelMutex.h"
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
#include "Core/HLE/HLE.h"
|
#include "Core/HLE/HLE.h"
|
||||||
#include "Core/HLE/FunctionWrappers.h"
|
#include "Core/HLE/FunctionWrappers.h"
|
||||||
#include "Core/HW/MediaEngine.h"
|
#include "Core/HW/MediaEngine.h"
|
||||||
#include "Core/Config.h"
|
|
||||||
#include "Core/MemMapHelpers.h"
|
#include "Core/MemMapHelpers.h"
|
||||||
#include "Core/Reporting.h"
|
#include "Core/Reporting.h"
|
||||||
#include "GPU/GPUInterface.h"
|
#include "GPU/GPUInterface.h"
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
#include "Core/HLE/FunctionWrappers.h"
|
#include "Core/HLE/FunctionWrappers.h"
|
||||||
#include "Core/HLE/sceMt19937.h"
|
#include "Core/HLE/sceMt19937.h"
|
||||||
#include "Core/MemMap.h"
|
#include "Core/MemMap.h"
|
||||||
#include "Core/Reporting.h"
|
|
||||||
|
|
||||||
#ifdef USE_CRT_DBG
|
#ifdef USE_CRT_DBG
|
||||||
#undef new
|
#undef new
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "Common/Net/Resolve.h"
|
|
||||||
#include "Common/Data/Text/Parsers.h"
|
#include "Common/Data/Text/Parsers.h"
|
||||||
|
|
||||||
#include "Common/Serialize/Serializer.h"
|
#include "Common/Serialize/Serializer.h"
|
||||||
@ -34,18 +33,18 @@
|
|||||||
#include "Core/MIPS/MIPS.h"
|
#include "Core/MIPS/MIPS.h"
|
||||||
#include "Core/Config.h"
|
#include "Core/Config.h"
|
||||||
#include "Core/MemMapHelpers.h"
|
#include "Core/MemMapHelpers.h"
|
||||||
|
#include "Core/Reporting.h"
|
||||||
#include "Core/Util/PortManager.h"
|
#include "Core/Util/PortManager.h"
|
||||||
|
|
||||||
#include "sceKernel.h"
|
#include "sceKernel.h"
|
||||||
#include "sceKernelThread.h"
|
#include "sceKernelThread.h"
|
||||||
#include "sceKernelMutex.h"
|
|
||||||
#include "sceUtility.h"
|
#include "sceUtility.h"
|
||||||
|
|
||||||
#include "Core/HLE/proAdhoc.h"
|
#include "Core/HLE/proAdhoc.h"
|
||||||
#include "Core/HLE/sceNetAdhoc.h"
|
#include "Core/HLE/sceNetAdhoc.h"
|
||||||
#include "Core/HLE/sceNet.h"
|
#include "Core/HLE/sceNet.h"
|
||||||
#include "Core/HLE/sceNp.h"
|
#include "Core/HLE/sceNp.h"
|
||||||
#include "Core/Reporting.h"
|
#include "Core/CoreTiming.h"
|
||||||
#include "Core/Instance.h"
|
#include "Core/Instance.h"
|
||||||
|
|
||||||
#if PPSSPP_PLATFORM(SWITCH) && !defined(INADDR_NONE)
|
#if PPSSPP_PLATFORM(SWITCH) && !defined(INADDR_NONE)
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
#include "Core/MIPS/MIPSCodeUtils.h"
|
#include "Core/MIPS/MIPSCodeUtils.h"
|
||||||
#include "Core/Util/PortManager.h"
|
#include "Core/Util/PortManager.h"
|
||||||
#include "Core/Config.h"
|
#include "Core/Config.h"
|
||||||
|
#include "Core/CoreTiming.h"
|
||||||
#include "Core/Core.h"
|
#include "Core/Core.h"
|
||||||
#include "Core/Reporting.h"
|
#include "Core/Reporting.h"
|
||||||
#include "Core/MemMapHelpers.h"
|
#include "Core/MemMapHelpers.h"
|
||||||
|
@ -35,12 +35,6 @@
|
|||||||
#include "Core/ELF/PBPReader.h"
|
#include "Core/ELF/PBPReader.h"
|
||||||
#include "Core/ELF/ParamSFO.h"
|
#include "Core/ELF/ParamSFO.h"
|
||||||
|
|
||||||
static std::map<std::string, std::unique_ptr<FileLoaderFactory>> factories;
|
|
||||||
|
|
||||||
void RegisterFileLoaderFactory(const std::string &prefix, std::unique_ptr<FileLoaderFactory> factory) {
|
|
||||||
factories[prefix] = std::move(factory);
|
|
||||||
}
|
|
||||||
|
|
||||||
FileLoader *ConstructFileLoader(const Path &filename) {
|
FileLoader *ConstructFileLoader(const Path &filename) {
|
||||||
if (filename.Type() == PathType::HTTP) {
|
if (filename.Type() == PathType::HTTP) {
|
||||||
FileLoader *baseLoader = new RetryingFileLoader(new HTTPFileLoader(filename));
|
FileLoader *baseLoader = new RetryingFileLoader(new HTTPFileLoader(filename));
|
||||||
@ -50,12 +44,6 @@ FileLoader *ConstructFileLoader(const Path &filename) {
|
|||||||
}
|
}
|
||||||
return new CachingFileLoader(baseLoader);
|
return new CachingFileLoader(baseLoader);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto &iter : factories) {
|
|
||||||
if (startsWith(filename.ToString(), iter.first)) {
|
|
||||||
return iter.second->ConstructFileLoader(filename);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return new LocalFileLoader(filename);
|
return new LocalFileLoader(filename);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -147,13 +147,6 @@ Path ResolvePBPFile(const Path &filename);
|
|||||||
|
|
||||||
IdentifiedFileType Identify_File(FileLoader *fileLoader, std::string *errorString);
|
IdentifiedFileType Identify_File(FileLoader *fileLoader, std::string *errorString);
|
||||||
|
|
||||||
class FileLoaderFactory {
|
|
||||||
public:
|
|
||||||
virtual ~FileLoaderFactory() {}
|
|
||||||
virtual FileLoader *ConstructFileLoader(const Path &filename) = 0;
|
|
||||||
};
|
|
||||||
void RegisterFileLoaderFactory(const std::string &prefix, std::unique_ptr<FileLoaderFactory> factory);
|
|
||||||
|
|
||||||
// Can modify the string filename, as it calls IdentifyFile above.
|
// Can modify the string filename, as it calls IdentifyFile above.
|
||||||
bool LoadFile(FileLoader **fileLoaderPtr, std::string *error_string);
|
bool LoadFile(FileLoader **fileLoaderPtr, std::string *error_string);
|
||||||
|
|
||||||
|
@ -45,7 +45,6 @@ MIPSDebugInterface *currentDebugMIPS = &debugr4k;
|
|||||||
u8 voffset[128];
|
u8 voffset[128];
|
||||||
u8 fromvoffset[128];
|
u8 fromvoffset[128];
|
||||||
|
|
||||||
|
|
||||||
#ifndef M_LOG2E
|
#ifndef M_LOG2E
|
||||||
#define M_E 2.71828182845904523536f
|
#define M_E 2.71828182845904523536f
|
||||||
#define M_LOG2E 1.44269504088896340736f
|
#define M_LOG2E 1.44269504088896340736f
|
||||||
@ -89,7 +88,6 @@ const float cst_constants[32] = {
|
|||||||
sqrtf(3.0f)/2.0f,
|
sqrtf(3.0f)/2.0f,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
MIPSState::MIPSState() {
|
MIPSState::MIPSState() {
|
||||||
MIPSComp::jit = nullptr;
|
MIPSComp::jit = nullptr;
|
||||||
|
|
||||||
|
@ -219,7 +219,7 @@ public:
|
|||||||
};
|
};
|
||||||
|
|
||||||
u32 nextPC;
|
u32 nextPC;
|
||||||
int downcount; // This really doesn't belong here, it belongs in CoreTiming. But you gotta do what you gotta do, this needs to be reachable in the ARM JIT.
|
int downcount; // This really doesn't belong here, it belongs in CoreTiming. But you gotta do what you gotta do, this needs to be reachable in the JITs without additional pointers.
|
||||||
|
|
||||||
bool inDelaySlot;
|
bool inDelaySlot;
|
||||||
int llBit; // ll/sc
|
int llBit; // ll/sc
|
||||||
@ -261,7 +261,6 @@ public:
|
|||||||
int RunLoopUntil(u64 globalTicks);
|
int RunLoopUntil(u64 globalTicks);
|
||||||
// To clear jit caches, etc.
|
// To clear jit caches, etc.
|
||||||
void InvalidateICache(u32 address, int length = 4);
|
void InvalidateICache(u32 address, int length = 4);
|
||||||
|
|
||||||
void ClearJitCache();
|
void ClearJitCache();
|
||||||
|
|
||||||
void ProcessPendingClears();
|
void ProcessPendingClears();
|
||||||
@ -271,7 +270,6 @@ public:
|
|||||||
volatile bool hasPendingClears = false;
|
volatile bool hasPendingClears = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class MIPSDebugInterface;
|
class MIPSDebugInterface;
|
||||||
|
|
||||||
//The one we are compiling or running currently
|
//The one we are compiling or running currently
|
||||||
|
@ -521,7 +521,6 @@ struct PSPPointer
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
constexpr u32 PSP_GetScratchpadMemoryBase() { return 0x00010000;}
|
constexpr u32 PSP_GetScratchpadMemoryBase() { return 0x00010000;}
|
||||||
constexpr u32 PSP_GetScratchpadMemoryEnd() { return 0x00014000;}
|
constexpr u32 PSP_GetScratchpadMemoryEnd() { return 0x00014000;}
|
||||||
|
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Common/GPU/ShaderWriter.h"
|
#include "Common/GPU/ShaderWriter.h"
|
||||||
|
|
||||||
#include "GPU/ge_constants.h"
|
#include "GPU/ge_constants.h"
|
||||||
#include "GPU/GPUCommon.h"
|
|
||||||
#include "GPU/Common/Draw2D.h"
|
#include "GPU/Common/Draw2D.h"
|
||||||
|
|
||||||
Draw2DPipelineInfo GenerateReinterpretFragmentShader(ShaderWriter &writer, GEBufferFormat from, GEBufferFormat to);
|
Draw2DPipelineInfo GenerateReinterpretFragmentShader(ShaderWriter &writer, GEBufferFormat from, GEBufferFormat to);
|
||||||
|
@ -22,7 +22,6 @@
|
|||||||
#include "Common/Common.h"
|
#include "Common/Common.h"
|
||||||
#include "Common/Swap.h"
|
#include "Common/Swap.h"
|
||||||
#include "Core/MemMap.h"
|
#include "Core/MemMap.h"
|
||||||
#include "Core/ConfigValues.h"
|
|
||||||
#include "GPU/ge_constants.h"
|
#include "GPU/ge_constants.h"
|
||||||
#include "GPU/GPUState.h"
|
#include "GPU/GPUState.h"
|
||||||
|
|
||||||
|
@ -22,12 +22,10 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include "Common/CommonTypes.h"
|
#include "Common/CommonTypes.h"
|
||||||
#include "Common/GPU/Shader.h"
|
|
||||||
#include "Common/GPU/thin3d.h"
|
#include "Common/GPU/thin3d.h"
|
||||||
#include "GPU/ge_constants.h"
|
#include "GPU/ge_constants.h"
|
||||||
#include "GPU/Common/Draw2D.h"
|
#include "GPU/Common/Draw2D.h"
|
||||||
#include "GPU/Common/ShaderCommon.h"
|
#include "GPU/Common/ShaderCommon.h"
|
||||||
#include "GPU/Common/DepalettizeShaderCommon.h"
|
|
||||||
|
|
||||||
|
|
||||||
class ClutTexture {
|
class ClutTexture {
|
||||||
|
@ -67,6 +67,7 @@ using namespace std::placeholders;
|
|||||||
#if !PPSSPP_PLATFORM(UWP)
|
#if !PPSSPP_PLATFORM(UWP)
|
||||||
#include "GPU/Vulkan/DebugVisVulkan.h"
|
#include "GPU/Vulkan/DebugVisVulkan.h"
|
||||||
#endif
|
#endif
|
||||||
|
#include "Core/MIPS/MIPS.h"
|
||||||
#include "Core/HLE/sceCtrl.h"
|
#include "Core/HLE/sceCtrl.h"
|
||||||
#include "Core/HLE/sceSas.h"
|
#include "Core/HLE/sceSas.h"
|
||||||
#include "Core/Debugger/SymbolMap.h"
|
#include "Core/Debugger/SymbolMap.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user