From e70f905372f30887778d72f5a321be76731b7b82 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 20 Mar 2022 13:32:33 -0400 Subject: windows resource path --- src/runtime_test.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/runtime_test.cpp b/src/runtime_test.cpp index b4a6d34..c3961e7 100644 --- a/src/runtime_test.cpp +++ b/src/runtime_test.cpp @@ -1,5 +1,9 @@ #include "runtime.h" std::string Runtime::getResourcePath(std::string_view name) { +#ifdef MSVC + return std::string("res/") + std::string(name); +#else return std::string("../res/") + std::string(name); +#endif } -- cgit 1.4.1