mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-23 06:44:38 +01:00
Replace Platform::GetAbsolutePath() with fs:: equivalent
This commit is contained in:
@@ -203,19 +203,6 @@ namespace Platform
|
||||
return c == '/';
|
||||
}
|
||||
|
||||
utf8* GetAbsolutePath(utf8* buffer, size_t bufferSize, const utf8* relativePath)
|
||||
{
|
||||
utf8* absolutePath = realpath(relativePath, nullptr);
|
||||
if (absolutePath == nullptr)
|
||||
{
|
||||
return String::Set(buffer, bufferSize, relativePath);
|
||||
}
|
||||
|
||||
String::Set(buffer, bufferSize, absolutePath);
|
||||
Memory::Free(absolutePath);
|
||||
return buffer;
|
||||
}
|
||||
|
||||
std::string ResolveCasing(std::string_view path, bool fileExists)
|
||||
{
|
||||
std::string result;
|
||||
|
||||
Reference in New Issue
Block a user