summaryrefslogtreecommitdiff
path: root/src/resources/macos/MacResources.cpp
diff options
context:
space:
mode:
authorSteph Enders <smenders@gmail.com>2022-06-27 17:45:44 -0400
committerSteph Enders <smenders@gmail.com>2022-06-27 17:45:44 -0400
commit38d46b2dda0243cfa60bc6945859ebd587e0a851 (patch)
tree3af0286199c6075ad50c36f2218c1c303f9fa921 /src/resources/macos/MacResources.cpp
parent734ee0f6352fdb6077c142d90f191c11c32f98d2 (diff)
Update MacOS to compile w/ Boost
MacOS seems to rely on an older/different C++ stdlib than Windows or Linux. So replacing those with Boost equivalents. Mostly contained to the Resources thankfully!
Diffstat (limited to 'src/resources/macos/MacResources.cpp')
-rw-r--r--src/resources/macos/MacResources.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/resources/macos/MacResources.cpp b/src/resources/macos/MacResources.cpp
index 2b41daa..9ae3499 100644
--- a/src/resources/macos/MacResources.cpp
+++ b/src/resources/macos/MacResources.cpp
@@ -26,28 +26,26 @@
//========================================================================
#include "MacResources.h"
-namespace fs = std::experimental::filesystem;
MacResources::MacResources() : Resources() {
- this->workingDir = std::filesystem::current_path();
- this->exeDir = std::filesystem::canonical("/proc/self/exe").remove_filename();
+ this->workingDir = filesystem::current_path();
+ this->exeDir = filesystem::canonical("/proc/self/exe").remove_filename();
// set an initial value - will get hardset in load if found
- std::filesystem::path f =
- workingDir / "res" / DEFAULT_FONT; // default as fallback
- this->font = std::make_shared<std::filesystem::path>(f);
- this->defaultsLua = std::make_shared<std::filesystem::path>();
+ filesystem::path f = workingDir / "res" / DEFAULT_FONT; // default as fallback
+ this->font = std::make_shared<filesystem::path>(f);
+ this->defaultsLua = std::make_shared<filesystem::path>();
}
-std::vector<std::filesystem::path> MacResources::levelSearchDirs() {
+std::vector<filesystem::path> MacResources::levelSearchDirs() {
return {workingDir / "maps", exeDir / "maps"};
}
-std::vector<std::filesystem::path> MacResources::defaultsSearchDirs() {
+std::vector<filesystem::path> MacResources::defaultsSearchDirs() {
return {workingDir / "dnglib", exeDir / "dnglib"};
}
-std::vector<std::filesystem::path> MacResources::fontSearchDirs() {
+std::vector<filesystem::path> MacResources::fontSearchDirs() {
return {workingDir / "res", exeDir / "res"};
}
-const char *MacResources::convert_to_str(std::filesystem::path &path) {
+const char *MacResources::convert_to_str(filesystem::path &path) {
return path.c_str();
}