diff --git a/platform/iphone/export/export.cpp b/platform/iphone/export/export.cpp index 81334331b..984cbbbbb 100644 --- a/platform/iphone/export/export.cpp +++ b/platform/iphone/export/export.cpp @@ -923,7 +923,7 @@ Error EditorExportPlatformIOS::_export_loading_screen_file(const Ref image; String image_path = p_dest_dir.plus_file("splash@2x.png"); image.instance(); - Error err = image->load(custom_launch_image_2x); + Error err = ImageLoader::load_image(custom_launch_image_2x, image); if (err) { image.unref(); @@ -937,7 +937,7 @@ Error EditorExportPlatformIOS::_export_loading_screen_file(const Refload(custom_launch_image_3x); + err = ImageLoader::load_image(custom_launch_image_3x, image); if (err) { image.unref(); @@ -954,7 +954,7 @@ Error EditorExportPlatformIOS::_export_loading_screen_file(const Refload(splash_path); + const Error err = ImageLoader::load_image(splash_path, splash); if (err) { splash.unref(); } diff --git a/platform/osx/export/export.cpp b/platform/osx/export/export.cpp index 643689de7..a5d5596ee 100644 --- a/platform/osx/export/export.cpp +++ b/platform/osx/export/export.cpp @@ -32,6 +32,7 @@ #include "codesign.h" #include "core/config/project_settings.h" +#include "core/io/image_loader.h" #include "core/io/marshalls.h" #include "core/io/resource_saver.h" #include "core/io/zip_io.h" @@ -1184,8 +1185,8 @@ Error EditorExportPlatformOSX::export_project(const Ref &p_p } else { Ref icon; icon.instance(); - icon->load(iconpath); - if (!icon->empty()) { + err = ImageLoader::load_image(iconpath, icon); + if (err == OK && !icon->empty()) { _make_icon(p_preset, icon, data); } }