Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #5923 from unknownbrackets/ui-tweaks
Don't count all files as savedata if id blank
  • Loading branch information
hrydgard committed Apr 21, 2014
2 parents 159d050 + 4dcf1d8 commit faa929a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UI/GameInfoCache.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit faa929a

Please sign in to comment.