mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Clear SFO data on game quit.
Saves the correct MENU after game exit. Seems more sane.
This commit is contained in:
parent
4b053efe8a
commit
8d68c055cc
3 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Reference in a new issue