Use Application Support directory on macOS. (#553)

This commit is contained in:
squidbus
2025-03-25 09:22:48 -07:00
committed by GitHub
parent 3d3524ffe7
commit fd16c379ff
4 changed files with 19 additions and 0 deletions
+2
View File
@@ -3,6 +3,7 @@
#include <functional>
#include <filesystem>
#include <optional>
namespace zelda64 {
std::filesystem::path get_asset_path(const char* asset);
@@ -12,6 +13,7 @@ namespace zelda64 {
// Apple specific methods that usually require Objective-C. Implemented in support_apple.mm.
#ifdef __APPLE__
void dispatch_on_ui_thread(std::function<void()> func);
std::optional<std::filesystem::path> get_application_support_directory();
std::filesystem::path get_bundle_resource_directory();
std::filesystem::path get_bundle_directory();
#endif