mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use fs::path for some implementations in Path
This commit is contained in:
parent
45002d723a
commit
7e7e088d8e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue