Skip to content

Commit

Permalink
Update for Defold 1.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aglitchman committed Apr 24, 2024
1 parent 66ad220 commit 815d958
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions liveupdate_reszip/lib/web/library_reszip.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var LibraryResZip = {
{{{ makeDynCall('viii', 'onprogress') }}}(context, loaded, total);
},
onerror: function (err) {
var pError = allocate(intArrayFromString(err), "i8", ALLOC_NORMAL);
var pError = stringToNewUTF8(err);
{{{ makeDynCall('vii', 'onerror') }}}(context, pError);
_free(pError);
},
Expand Down Expand Up @@ -42,7 +42,6 @@ var LibraryResZip = {
FileLoader.load(
url,
"arraybuffer",
0,
function (loaded, total) {
preload.handler("onprogress", loaded, total);
},
Expand All @@ -51,7 +50,8 @@ var LibraryResZip = {
},
function (response) {
preload.handler("onload", response);
}
},
function () { }
);
return;
}
Expand Down Expand Up @@ -83,10 +83,10 @@ var LibraryResZip = {
//
// Normal usage - load something from URL
//
FileLoader.load(url, "arraybuffer", 0, callbacks.onprogress, callbacks.onerror, callbacks.onload);
FileLoader.load(url, "arraybuffer", callbacks.onprogress, callbacks.onerror, callbacks.onload, function() { });
}
},
};

autoAddDeps(LibraryResZip, "$ResZip");
mergeInto(LibraryManager.library, LibraryResZip);
addToLibrary(LibraryResZip);

0 comments on commit 815d958

Please sign in to comment.