Changeset View
Changeset View
Standalone View
Standalone View
source/ps/Util.h
Show All 17 Lines | |||||
#ifndef PS_UTIL_H | #ifndef PS_UTIL_H | ||||
#define PS_UTIL_H | #define PS_UTIL_H | ||||
#include "lib/file/vfs/vfs_path.h" | #include "lib/file/vfs/vfs_path.h" | ||||
#include "lib/os_path.h" | #include "lib/os_path.h" | ||||
#include "lib/status.h" | #include "lib/status.h" | ||||
#include "ps/CStr.h" | #include "ps/CStr.h" | ||||
#include <type_traits> | |||||
class Tex; | class Tex; | ||||
void WriteSystemInfo(); | void WriteSystemInfo(); | ||||
const wchar_t* ErrorString(int err); | const wchar_t* ErrorString(int err); | ||||
CStr GetStatusAsString(Status status); | CStr GetStatusAsString(Status status); | ||||
OsPath createDateIndexSubdirectory(const OsPath& parentDir); | OsPath createDateIndexSubdirectory(const OsPath& parentDir); | ||||
Status tex_write(Tex* t, const VfsPath& filename); | Status tex_write(Tex* t, const VfsPath& filename); | ||||
std::string Hexify(const std::string& s); | std::string Hexify(const std::string& s); | ||||
std::string Hexify(const u8* s, size_t length); | std::string Hexify(const u8* s, size_t length); | ||||
class VoidTag{}; | |||||
template<typename T> | |||||
using HandleVoid = std::conditional_t<std::is_void_v<T>, VoidTag, T>; | |||||
#endif // PS_UTIL_H | #endif // PS_UTIL_H |
Wildfire Games · Phabricator