From 1beb19f827a65fe511185a5f3e42cc76e71471f8 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 26 May 2013 16:29:21 -0700 Subject: [PATCH] Clear the debug symbol map on shutdown. Instead of polluting the next game. --- Core/HLE/sceKernelModule.cpp | 1 + Core/MIPS/MIPSAnalyst.cpp | 6 ++++++ Core/MIPS/MIPSAnalyst.h | 1 + 3 files changed, 8 insertions(+) diff --git a/Core/HLE/sceKernelModule.cpp b/Core/HLE/sceKernelModule.cpp index 033ea5d4ea..7a2a668808 100644 --- a/Core/HLE/sceKernelModule.cpp +++ b/Core/HLE/sceKernelModule.cpp @@ -296,6 +296,7 @@ void __KernelModuleShutdown() { unresolvedVars.clear(); exportedVars.clear(); + MIPSAnalyst::Shutdown(); } void WriteVarSymbol(u32 exportAddress, u32 relocAddress, u8 type) diff --git a/Core/MIPS/MIPSAnalyst.cpp b/Core/MIPS/MIPSAnalyst.cpp index dd18ac02e1..969dad5cfe 100644 --- a/Core/MIPS/MIPSAnalyst.cpp +++ b/Core/MIPS/MIPSAnalyst.cpp @@ -264,6 +264,12 @@ namespace MIPSAnalyst map hashToFunction; + void Shutdown() + { + functions.clear(); + hashToFunction.clear(); + } + // hm pointless :P void UpdateHashToFunctionMap() { diff --git a/Core/MIPS/MIPSAnalyst.h b/Core/MIPS/MIPSAnalyst.h index 2cd5f71a34..68d8202faa 100644 --- a/Core/MIPS/MIPSAnalyst.h +++ b/Core/MIPS/MIPSAnalyst.h @@ -62,5 +62,6 @@ namespace MIPSAnalyst bool IsDelaySlotNiceFPU(u32 branchOp, u32 op); bool IsSyscall(u32 op); + void Shutdown(); } // namespace MIPSAnalyst