You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Make FileAccess and DirAccess classes reference counted.
This commit is contained in:
@@ -295,14 +295,13 @@ Error EditorExportPlatformUWP::export_project(const Ref<EditorExportPreset> &p_p
|
||||
|
||||
Error err = OK;
|
||||
|
||||
FileAccess *fa_pack = FileAccess::open(p_path, FileAccess::WRITE, &err);
|
||||
Ref<FileAccess> fa_pack = FileAccess::open(p_path, FileAccess::WRITE, &err);
|
||||
ERR_FAIL_COND_V_MSG(err != OK, ERR_CANT_CREATE, "Cannot create file '" + p_path + "'.");
|
||||
|
||||
AppxPackager packager;
|
||||
packager.init(fa_pack);
|
||||
|
||||
FileAccess *src_f = nullptr;
|
||||
zlib_filefunc_def io = zipio_create_io_from_file(&src_f);
|
||||
zlib_filefunc_def io = zipio_create_io();
|
||||
|
||||
if (ep.step("Creating package...", 0)) {
|
||||
return ERR_SKIP;
|
||||
|
||||
Reference in New Issue
Block a user