Don't count all files as savedata if id blank.

This commit is contained in:
Unknown W. Brackets 2014-04-20 20:50:45 -07:00
parent 695e9e1b4e
commit 4dcf1d86ed

View File

@ -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);