Various fixes to PathBrowser etc to handle browsing HTTP subfolders

This commit is contained in:
Henrik Rydgård committed 2023-12-29 21:34:24 +01:00
1 parent 80bd328a9d
commit 9c1fd06c2f
4 files changed
+28 -13

No files matched your search

+6 -1
View File
@@ -160,8 +160,13 @@ bool RemoteISOConnectScreen::FindServer(std::string &resultHost, int &resultPort
bool supported = false;
for (const std::string &item : items) {
if (!RemoteISOFileSupported(item)) {
if (item.empty())
continue;
if (!RemoteISOFileSupported(item)) {
if (item.back() != '/') {
// We accept lists of just directories - we kinda have to.
continue;
}
}
supported = true;
break;