remove linux-specific networking paths

This commit is contained in:
Tropical
2026-04-09 23:06:13 -05:00
parent e7dca2570a
commit cf94e7d162
4 changed files with 20 additions and 29 deletions

View File

@@ -61,7 +61,6 @@ File::File(const std::string& pathname) {
if (fixedPath.find("GAME:/") == 0) fixedPath = fixedPath.substr(6);
m_abstractPathName = fixedPath;
#if defined(__linux__)
std::string request = std::filesystem::path(m_abstractPathName).string();
while (!request.empty() && request[0] == '/') request.erase(0, 1);
if (request.find("res/") == 0) request.erase(0, 4);
@@ -91,14 +90,13 @@ File::File(const std::string& pathname) {
return;
}
}
#endif
// #ifdef _WINDOWS64
// std::string path = std::filesystem::path(m_abstractPathName).string();
// std::string finalPath = PlatformStorage.GetMountedPath(path.c_str());
// if (finalPath.size() == 0) finalPath = path;
// m_abstractPathName = finalPath;
// #endif
#ifdef _WINDOWS64
std::string path = std::filesystem::path(m_abstractPathName).string();
std::string finalPath = PlatformStorage.GetMountedPath(path.c_str());
if (finalPath.size() == 0) finalPath = path;
m_abstractPathName = finalPath;
#endif
/*
std::vector<std::string> path = stringSplit( pathname, pathSeparator );