1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 06:44:38 +01:00

Use fs::path for some implementations in Path

This commit is contained in:
Paweł Bylica
2019-11-19 15:40:15 +01:00
parent 45002d723a
commit 7e7e088d8e

View File

@@ -16,6 +16,7 @@
#include "../platform/platform.h"
#include "../util/Util.h"
#include "File.h"
#include "FileSystem.hpp"
#include "Memory.hpp"
#include "Path.hpp"
#include "String.hpp"
@@ -143,7 +144,7 @@ namespace Path
const std::string GetExtension(const std::string& path)
{
return GetExtension(path.c_str());
return fs::path{ path }.extension().string();
}
const utf8* GetExtension(const utf8* path)