mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 21:39:52 +00:00
Initialise everything in the SaveFileInfo to 0.
We were getting std::tm initialised to random values which non-existent files become the preferred save.
This commit is contained in:
parent
07e8d475b3
commit
1af2f99959
@ -254,6 +254,15 @@ struct SaveFileInfo
|
||||
int textureWidth;
|
||||
int textureHeight;
|
||||
|
||||
SaveFileInfo() : size(0), saveName(""), idx(0),
|
||||
textureData(0), textureWidth(0), textureHeight(0)
|
||||
{
|
||||
memset(title, 0, 128);
|
||||
memset(saveTitle, 0, 128);
|
||||
memset(saveDetail, 0, 1024);
|
||||
modif_time = {0};
|
||||
}
|
||||
|
||||
void DoState(PointerWrap &p)
|
||||
{
|
||||
auto s = p.Section("SaveFileInfo", 1);
|
||||
|
Loading…
Reference in New Issue
Block a user