2024-12-04 08:06:35 +00:00
|
|
|
#pragma once
|
2024-10-08 02:29:00 +00:00
|
|
|
|
|
|
|
#include <filesystem>
|
2024-11-04 00:00:00 +00:00
|
|
|
#include <string>
|
|
|
|
|
2024-12-02 07:24:30 +00:00
|
|
|
#ifdef _WIN32
|
|
|
|
typedef wchar_t CharType;
|
|
|
|
#define STR(x) L##x
|
|
|
|
#else
|
|
|
|
typedef char CharType;
|
|
|
|
#define STR(x) x
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef _WIN32
|
|
|
|
typedef std::wstring StringType;
|
|
|
|
#else
|
|
|
|
typedef std::string StringType;
|
|
|
|
#endif
|
2024-10-08 02:29:00 +00:00
|
|
|
|
|
|
|
bool filepath_is_readable(const std::filesystem::path &path);
|
|
|
|
|
|
|
|
std::filesystem::path find_resource_file(const std::filesystem::path &path);
|
|
|
|
|
2024-11-04 00:00:00 +00:00
|
|
|
std::string path_to_u8string(const std::filesystem::path &path);
|
|
|
|
|
2024-12-02 07:24:30 +00:00
|
|
|
std::string wstring_to_u8string(const StringType &wstr);
|
|
|
|
|
2024-11-04 00:00:00 +00:00
|
|
|
StringType path_to_string_type(const std::filesystem::path &path);
|
|
|
|
|
|
|
|
StringType to_string_type(int value);
|