From 7e7e088d8eeca6567493a05753731562ef7b450a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Tue, 19 Nov 2019 15:40:15 +0100 Subject: [PATCH] Use fs::path for some implementations in Path --- src/openrct2/core/Path.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/openrct2/core/Path.cpp b/src/openrct2/core/Path.cpp index 8c1bfeb045..2206901ef6 100644 --- a/src/openrct2/core/Path.cpp +++ b/src/openrct2/core/Path.cpp @@ -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)