mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Savedata: Use size, not bufSize, for icons.
Verified by tests. Should help #8810.
This commit is contained in:
parent
42feade460
commit
c0ccc9449d
1 changed files with 4 additions and 4 deletions
|
@ -524,26 +524,26 @@ int SavedataParam::Save(SceUtilitySavedataParam* param, const std::string &saveD
|
|||
if (param->icon0FileData.buf.IsValid())
|
||||
{
|
||||
std::string icon0path = dirPath + "/" + ICON0_FILENAME;
|
||||
WritePSPFile(icon0path, param->icon0FileData.buf, param->icon0FileData.bufSize);
|
||||
WritePSPFile(icon0path, param->icon0FileData.buf, param->icon0FileData.size);
|
||||
}
|
||||
// SAVE ICON1
|
||||
if (param->icon1FileData.buf.IsValid())
|
||||
{
|
||||
std::string icon1path = dirPath + "/" + ICON1_FILENAME;
|
||||
WritePSPFile(icon1path, param->icon1FileData.buf, param->icon1FileData.bufSize);
|
||||
WritePSPFile(icon1path, param->icon1FileData.buf, param->icon1FileData.size);
|
||||
}
|
||||
// SAVE PIC1
|
||||
if (param->pic1FileData.buf.IsValid())
|
||||
{
|
||||
std::string pic1path = dirPath + "/" + PIC1_FILENAME;
|
||||
WritePSPFile(pic1path, param->pic1FileData.buf, param->pic1FileData.bufSize);
|
||||
WritePSPFile(pic1path, param->pic1FileData.buf, param->pic1FileData.size);
|
||||
}
|
||||
|
||||
// Save SND
|
||||
if (param->snd0FileData.buf.IsValid())
|
||||
{
|
||||
std::string snd0path = dirPath + "/" + SND0_FILENAME;
|
||||
WritePSPFile(snd0path, param->snd0FileData.buf, param->snd0FileData.bufSize);
|
||||
WritePSPFile(snd0path, param->snd0FileData.buf, param->snd0FileData.size);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue