Files
wiicompiled/aurora-main/lib/fs_helper.hpp
T
patchzyy ec226e8348 init
2026-08-23 17:10:50 +02:00

12 lines
309 B
C++

#pragma once
#include <filesystem>
/**
* Converts a std::filesystem::path to a std::string, UTF-8, without exploding on Windows.
*/
inline std::string fs_path_to_string(const std::filesystem::path& path) {
const auto u8str = path.u8string();
return { reinterpret_cast<const char*>(u8str.c_str()) };
}