Allow compat_resolve_path to handle duplicate path separators (#575)

Alternate fix for https://github.com/fallout2-ce/fallout2-ce/pull/563.
This commit is contained in:
Mike Klaas
2026-07-20 21:49:04 -07:00
committed by GitHub
parent 447cf6edff
commit 9467f4f778
+9
View File
@@ -393,6 +393,15 @@ void compat_resolve_path(char* path)
}
while (dir != nullptr) {
while (*pch == '/') {
pch++;
}
if (*pch == '\0') {
closedir(dir);
break;
}
char* sep = strchr(pch, '/');
size_t length;
if (sep != nullptr) {