Permalink
Browse files

sceUtilitySavedata MODE_LIST and MODE_FILES: always return the file

names in uppercase.
  • Loading branch information...
gid15 committed Oct 9, 2015
1 parent 596803c commit 9009c2e538ded8076de82dab105cf50512bb7d89
Showing with 7 additions and 7 deletions.
  1. +7 −7 src/jpcsp/HLE/modules/sceUtility.java
@@ -1540,6 +1540,8 @@ protected boolean executeUpdateVisible() {
stat.mtime.write(mem, entryAddr + 36);
}
String entryName = entries[i].substring(savedataParams.gameName.length());
// File names are always returned in upper case
entryName = entryName.toUpperCase();
Utilities.writeStringNZ(mem, entryAddr + 52, 20, entryName);
if (log.isDebugEnabled()) {
@@ -1581,7 +1583,8 @@ protected boolean executeUpdateVisible() {
// List all files in the savedata (normal and/or encrypted).
for (int i = 0; i < maxNumEntries; i++) {
String entry = entries[i];
// File names are always returned in upper case
String entry = entries[i].toUpperCase();
String filePath = path + "/" + entry;
SceIoStat stat = Modules.IoFileMgrForUserModule.statFile(filePath);
@@ -1596,8 +1599,7 @@ protected boolean executeUpdateVisible() {
stat.atime.write(mem, entryAddr + 32);
stat.mtime.write(mem, entryAddr + 48);
}
String entryName = entries[i];
Utilities.writeStringNZ(mem, entryAddr + 64, 16, entryName);
Utilities.writeStringNZ(mem, entryAddr + 64, 16, entry);
systemFileNumEntries++;
}
} else if (savedataParams.isSecureFile(entry)) {
@@ -1617,8 +1619,7 @@ protected boolean executeUpdateVisible() {
stat.atime.write(mem, entryAddr + 32);
stat.mtime.write(mem, entryAddr + 48);
}
String entryName = entries[i];
Utilities.writeStringNZ(mem, entryAddr + 64, 16, entryName);
Utilities.writeStringNZ(mem, entryAddr + 64, 16, entry);
saveFileSecureNumEntries++;
}
} else {
@@ -1632,8 +1633,7 @@ protected boolean executeUpdateVisible() {
stat.atime.write(mem, entryAddr + 32);
stat.mtime.write(mem, entryAddr + 48);
}
String entryName = entries[i];
Utilities.writeStringNZ(mem, entryAddr + 64, 16, entryName);
Utilities.writeStringNZ(mem, entryAddr + 64, 16, entry);
saveFileNumEntries++;
}
}

0 comments on commit 9009c2e

Please sign in to comment.