mirror of
https://github.com/libretro/ppsspp.git
synced 2024-12-04 23:16:41 +00:00
Add a check and comment.
This commit is contained in:
parent
8a26da6e45
commit
740f49c7a1
@ -488,6 +488,8 @@ bool SavedataParam::Load(SceUtilitySavedataParam *param, const std::string &save
|
||||
// Don't know what it is, but PSP always respond this and this unlock some game
|
||||
param->bind = 1021;
|
||||
|
||||
// Load another files,seems these are required by some games, e.g. Fushigi no Dungeon Fuurai no Shiren 4 Plus.
|
||||
|
||||
// Load ICON0.PNG
|
||||
LoadFile(dirPath, ICON0_FILENAME, ¶m->icon0FileData);
|
||||
// Load ICON1.PNG
|
||||
@ -585,6 +587,8 @@ void SavedataParam::LoadSFO(SceUtilitySavedataParam *param, const std::string di
|
||||
void SavedataParam::LoadFile(const std::string dirPath, const std::string filename, PspUtilitySavedataFileData *fileData) {
|
||||
std::string filePath = dirPath + "/" + filename;
|
||||
s64 readSize = -1;
|
||||
if(!fileData->buf.IsValid())
|
||||
return;
|
||||
u8 *buf = fileData->buf;
|
||||
if(ReadPSPFile(filePath, &buf, fileData->bufSize, &readSize))
|
||||
fileData->size = readSize;
|
||||
|
Loading…
Reference in New Issue
Block a user