diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-20 13:32:33 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2022-03-20 13:32:33 -0400 |
commit | e70f905372f30887778d72f5a321be76731b7b82 (patch) | |
tree | 8ad80e972031e6d4136d1f37ee72d1f0573a54c5 /src/runtime_test.cpp | |
parent | 561031b42185cff56fee8c7a59fea5654bac7bb7 (diff) | |
download | ether-e70f905372f30887778d72f5a321be76731b7b82.tar.gz ether-e70f905372f30887778d72f5a321be76731b7b82.tar.bz2 ether-e70f905372f30887778d72f5a321be76731b7b82.zip |
windows resource path
Diffstat (limited to 'src/runtime_test.cpp')
-rw-r--r-- | src/runtime_test.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 @@ | |||
1 | #include "runtime.h" | 1 | #include "runtime.h" |
2 | 2 | ||
3 | std::string Runtime::getResourcePath(std::string_view name) { | 3 | std::string Runtime::getResourcePath(std::string_view name) { |
4 | #ifdef MSVC | ||
5 | return std::string("res/") + std::string(name); | ||
6 | #else | ||
4 | return std::string("../res/") + std::string(name); | 7 | return std::string("../res/") + std::string(name); |
8 | #endif | ||
5 | } | 9 | } |