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

@@ -13,9 +13,6 @@
#ifdef __APPLE__
#include <Foundation/Foundation.h>
#import "objc_utils.h"
#elif __WEB__
void webgl_sync();
#endif
namespace {
@@ -2021,9 +2018,7 @@ void Canvas::export_equirectangular_thread(std::string file_path)
data.save_png(file_path);
}
#ifdef __IOS__
save_image_library(file_path);
#endif
App::I->publish_exported_image(file_path);
}
void Canvas::inject_xmp(std::string jpg_path)
@@ -2305,9 +2300,7 @@ void Canvas::export_cube_faces_thread(std::string file_name)
face.save_png(path);
pb->increment();
#ifdef __IOS__
save_image_library(path);
#endif
App::I->publish_exported_image(path);
#ifdef __OBJC__
[files addObject : [NSString stringWithUTF8String:path.c_str()] ];
#endif
@@ -2575,9 +2568,7 @@ bool Canvas::project_save_thread(std::string file_path, bool show_progress)
if (!sw.save(lapse_path))
LOG("cannot save timelase to %s", lapse_path.c_str());
}
#if __WEB__
webgl_sync();
#endif
App::I->flush_platform_storage();
}
if (show_progress)