From 660e6bca1e343535549a4d88aa805f3790e0d32b Mon Sep 17 00:00:00 2001 From: Anthony Date: Mon, 26 Jul 2021 22:34:23 +1200 Subject: [PATCH] Fix loading from UNC paths Remove unexplained slash processing which breaks UNC paths --- src/core/kernel/init/CxbxKrnl.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/core/kernel/init/CxbxKrnl.cpp b/src/core/kernel/init/CxbxKrnl.cpp index 00a6281f3..822a0e1e6 100644 --- a/src/core/kernel/init/CxbxKrnl.cpp +++ b/src/core/kernel/init/CxbxKrnl.cpp @@ -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);