Fix loading from UNC paths

Remove unexplained slash processing
which breaks UNC paths
This commit is contained in:
Anthony 2021-07-26 22:34:23 +12:00
parent b4dadb1dff
commit 660e6bca1e
1 changed files with 0 additions and 9 deletions

View File

@ -995,15 +995,6 @@ void CxbxKrnlEmulate(unsigned int reserved_systems, blocks_reserved_t blocks_res
n += semicolon_str.size();
}
}
// Remove extra slashes.
std::string slash_search[] = { "\\\\", "//" };
std::string slash_str = "/";
for (n = 0, i = 0; i < slash_search->size(); i++, n = 0) {
while ((n = xbePath.find(slash_search[i], n)) != std::string::npos) {
xbePath.replace(n, slash_search[i].size(), slash_str);
n += slash_str.size();
}
}
// Once clean up process is done, proceed set to global variable string.
strncpy(szFilePath_Xbe, xbePath.c_str(), xbox::max_path - 1);