From a878cdc42bf41355758dabd353d521d4b12e73fc Mon Sep 17 00:00:00 2001 From: Stephen Enders <84310577289916ceefd4132143fb36b63a5f0c71> Date: Wed, 22 Jun 2022 01:28:23 -0400 Subject: Add windows support Create res.h for handling resource loading Update CMakeLists.txt to ensure compilation is passed properly Fix unsupported functions () on Windows Use to_str(path) to get path as c_str() returns wchar_t* on windows --- src/linux/res.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/linux') diff --git a/src/linux/res.h b/src/linux/res.h index 9e3b8c5..34ded54 100644 --- a/src/linux/res.h +++ b/src/linux/res.h @@ -42,6 +42,10 @@ struct Res { } typedef Res; +inline const char* to_str(std::filesystem::path file) { + return file.c_str(); +} + inline Res get_resources() { using namespace std::filesystem; -- cgit v1.2.3-54-g00ecf