Initial preparations for ability to replace game functions with custom implementations.

Also auto-saves hashmap additions and reapplies the hashmap on function
rename so that if you rename a function that exists in several copies
they will all be labelled.

Note that actual function replacement is not activated yet.
This commit is contained in:
Henrik Rydgard committed 2013-12-17 12:27:20 +01:00
1 parent 52cec1ca38
commit 2140892074
25 files changed
+362 -126

No files matched your search

+4
View File
@@ -30,6 +30,7 @@
#include "Core/MemMap.h"
#include "Core/MIPS/MIPS.h"
#include "Core/MIPS/MIPSAnalyst.h"
#include "Core/MIPS/JitCommon/JitCommon.h"
#include "Core/System.h"
@@ -165,6 +166,8 @@ void CPU_Init() {
std::string filename = coreParameter.fileToStart;
IdentifiedFileType type = Identify_File(filename);
MIPSAnalyst::Reset();
switch (type) {
case FILETYPE_PSP_ISO:
case FILETYPE_PSP_ISO_NP:
@@ -319,6 +322,7 @@ bool PSP_IsInited() {
}
void PSP_Shutdown() {
MIPSAnalyst::StoreHashMap();
if (coreState == CORE_RUNNING)
Core_UpdateState(CORE_ERROR);
Core_NotifyShutdown();