Permalink
Browse files

Savedata: Use size, not bufSize, for icons.

Verified by tests.  Should help #8810.
  • Loading branch information...
unknownbrackets committed Aug 11, 2018
1 parent 42feade commit c0ccc9449d33eba35f2891f8054c9ed4de44c4b6
Showing with 4 additions and 4 deletions.
  1. +4 −4 Core/Dialog/SavedataParam.cpp
@@ -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;

0 comments on commit c0ccc94

Please sign in to comment.