Route export storage hooks through platform services

This commit is contained in:
2026-06-04 16:34:19 +02:00
parent 3c709f07e6
commit 6419645e03
12 changed files with 86 additions and 23 deletions

View File

@@ -18,6 +18,9 @@ std::string android_get_clipboard();
bool android_set_clipboard(const std::string& s);
#elif __APPLE__
void delete_all_files_in_path(const std::string& source_path);
#ifdef __IOS__
void save_image_library(const std::string& path);
#endif
#elif __LINUX__
#include <tinyfiledialogs.h>
std::string linux_home_path();
@@ -279,6 +282,22 @@ public:
#endif
}
void publish_exported_image(std::string_view path) override
{
#ifdef __IOS__
save_image_library(std::string(path));
#else
(void)path;
#endif
}
void flush_persistent_storage() override
{
#ifdef __WEB__
webgl_sync();
#endif
}
[[nodiscard]] bool enables_live_asset_reloading() override
{
#if defined(__OSX__)