mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-23 13:30:02 +00:00
Don't count all files as savedata if id blank.
This commit is contained in:
parent
695e9e1b4e
commit
4dcf1d86ed
@ -94,6 +94,9 @@ std::vector<std::string> GameInfo::GetSaveDataDirectories() {
|
||||
getFilesInDir(memc.c_str(), &dirs);
|
||||
|
||||
std::vector<std::string> directories;
|
||||
if (id.empty()) {
|
||||
return directories;
|
||||
}
|
||||
for (size_t i = 0; i < dirs.size(); i++) {
|
||||
if (startsWith(dirs[i].name, id)) {
|
||||
directories.push_back(dirs[i].fullName);
|
||||
|
Loading…
Reference in New Issue
Block a user