mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-14 13:31:57 +00:00
remove linux-specific networking paths
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user