diff --git a/Core/ELF/ParamSFO.cpp b/Core/ELF/ParamSFO.cpp index ad107c7d03..542101a23c 100644 --- a/Core/ELF/ParamSFO.cpp +++ b/Core/ELF/ParamSFO.cpp @@ -246,8 +246,11 @@ bool ParamSFOData::WriteSFO(u8 **paramsfo, size_t *size) } return true; +} - +void ParamSFOData::Clear() +{ + values.clear(); } void ParamSFOData::ValueData::SetData(const u8* data, int size) diff --git a/Core/ELF/ParamSFO.h b/Core/ELF/ParamSFO.h index 99b2f93202..e58f28d817 100644 --- a/Core/ELF/ParamSFO.h +++ b/Core/ELF/ParamSFO.h @@ -43,6 +43,8 @@ public: int GetDataOffset(const u8 *paramsfo, std::string dataName); + void Clear(); + private: enum ValueType { diff --git a/Core/System.cpp b/Core/System.cpp index 95785637d8..943eb03b01 100644 --- a/Core/System.cpp +++ b/Core/System.cpp @@ -436,6 +436,7 @@ void PSP_Shutdown() { CPU_Shutdown(); } GPU_Shutdown(); + g_paramSFO.Clear(); host->SetWindowTitle(0); currentMIPS = 0; pspIsInited = false;