Minor improvements

This commit is contained in:
2021-03-31 19:43:11 +02:00
parent 9f225e14cd
commit f7c73167eb
3 changed files with 8 additions and 1 deletions

View File

@@ -9,7 +9,11 @@
namespace openVulkanoCpp namespace openVulkanoCpp
{ {
#ifdef __APPLE__
AppFolders AppFolders::INSTANCE = AppFolders("");
#else
AppFolders AppFolders::INSTANCE = AppFolders("openVulkano"); AppFolders AppFolders::INSTANCE = AppFolders("openVulkano");
#endif
void AppFolders::Init(std::string_view appName) void AppFolders::Init(std::string_view appName)
{ {
@@ -82,4 +86,4 @@ namespace openVulkanoCpp
#endif #endif
return INSTANCE.appTemp; return INSTANCE.appTemp;
} }
} }

View File

@@ -43,5 +43,7 @@ namespace openVulkanoCpp
[[nodiscard]] size_t GetMaxArchiveFileSize() const { return m_fileSizeLimit; } [[nodiscard]] size_t GetMaxArchiveFileSize() const { return m_fileSizeLimit; }
void Move(const std::filesystem::path& newDir); void Move(const std::filesystem::path& newDir);
const std::filesystem::path& GetDir() const { return m_dir; }
}; };
} }

View File

@@ -12,6 +12,7 @@
#include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/quaternion.hpp> #include <glm/gtx/quaternion.hpp>
#include <glm/gtx/transform.hpp> #include <glm/gtx/transform.hpp>
#include <glm/gtx/io.hpp>
namespace openVulkanoCpp::Math namespace openVulkanoCpp::Math
{ {