Remote ISO: Fix bugs from issue #12018 and probably #12019

This commit is contained in:
Henrik Rydgård committed 2019-05-07 23:26:13 +02:00
1 parent 989b564fa4
commit 83039f3f90
2 files changed
+16 -1

No files matched your search

+10 -1
View File
@@ -204,7 +204,16 @@ static bool LoadGameList(const std::string &host, int port, std::vector<std::str
return false;
}
for (const std::string &item : items) {
for (std::string item : items) {
// Apply some workarounds.
if (item.empty())
continue;
if (item[0] != '/')
item.insert(0, "/");
if (item.back() == '\r')
item.pop_back();
if (!RemoteISOFileSupported(item)) {
continue;
}