1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 14:54:30 +01:00

Remove C string overload for Path::GetAbsolute()

This commit is contained in:
Gymnasiast
2022-01-26 14:54:49 +01:00
parent 0577497c32
commit d7dcffbee8
5 changed files with 17 additions and 29 deletions

View File

@@ -84,15 +84,10 @@ namespace Path
return u8path(path).extension().u8string();
}
utf8* GetAbsolute(utf8* buffer, size_t bufferSize, const utf8* relativePath)
{
return Platform::GetAbsolutePath(buffer, bufferSize, relativePath);
}
std::string GetAbsolute(std::string_view relative)
{
utf8 absolute[MAX_PATH];
return GetAbsolute(absolute, sizeof(absolute), std::string(relative).c_str());
return Platform::GetAbsolutePath(absolute, sizeof(absolute), std::string(relative).c_str());
}
bool Equals(std::string_view a, std::string_view b)