1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 22:13:07 +01:00

Replace Platform::GetAbsolutePath() with fs:: equivalent

This commit is contained in:
Gymnasiast
2022-01-26 14:58:35 +01:00
parent d7dcffbee8
commit f7adac3de2
4 changed files with 2 additions and 32 deletions

View File

@@ -86,8 +86,8 @@ namespace Path
std::string GetAbsolute(std::string_view relative)
{
utf8 absolute[MAX_PATH];
return Platform::GetAbsolutePath(absolute, sizeof(absolute), std::string(relative).c_str());
std::error_code ec;
return fs::absolute(u8path(relative), ec).u8string();
}
bool Equals(std::string_view a, std::string_view b)