Clear SFO data on game quit.

Saves the correct MENU after game exit.  Seems more sane.
This commit is contained in:
Unknown W. Brackets 2014-12-20 08:29:56 -08:00
parent 4b053efe8a
commit 8d68c055cc
3 changed files with 7 additions and 1 deletions

View file

@ -246,8 +246,11 @@ bool ParamSFOData::WriteSFO(u8 **paramsfo, size_t *size)
} }
return true; return true;
}
void ParamSFOData::Clear()
{
values.clear();
} }
void ParamSFOData::ValueData::SetData(const u8* data, int size) void ParamSFOData::ValueData::SetData(const u8* data, int size)

View file

@ -43,6 +43,8 @@ public:
int GetDataOffset(const u8 *paramsfo, std::string dataName); int GetDataOffset(const u8 *paramsfo, std::string dataName);
void Clear();
private: private:
enum ValueType enum ValueType
{ {

View file

@ -436,6 +436,7 @@ void PSP_Shutdown() {
CPU_Shutdown(); CPU_Shutdown();
} }
GPU_Shutdown(); GPU_Shutdown();
g_paramSFO.Clear();
host->SetWindowTitle(0); host->SetWindowTitle(0);
currentMIPS = 0; currentMIPS = 0;
pspIsInited = false; pspIsInited = false;