Skip to content

Commit e2071a3

Browse files
committed
1.4.3
1 parent 24019ce commit e2071a3

4 files changed

Lines changed: 18 additions & 7 deletions

File tree

www/modloader/_oneloader_configuration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ if (window.nw.App.argv[0] !== "test") {
33
const MAX_MANIFEST_VERSION = 1;
44
const ID_BLACKLIST = ["gomori"];
55
const EXTENSION_RULES = {
6-
"png": { "encrypt": "rpgmaker", "target_extension": "rpgmvp" },
6+
"png": { "encrypt": "rpgmaker", "target_extension": "rpgmvp", "raw": ["img/system/window.png", "img/system/loading.png"] },
77
"ogg": { "encrypt": "rpgmaker", "target_extension": "rpgmvo" }
88
};
99

www/modloader/early_loader.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,11 @@
298298
}
299299

300300
get extensionRule() {
301+
if (EXTENSION_RULES[this.srcExtension] && EXTENSION_RULES[this.srcExtension].raw && EXTENSION_RULES[this.srcExtension].raw.includes(
302+
(this.srcPath + "/" + this.srcFile).toLowerCase()
303+
)) {
304+
return null;
305+
}
301306
return EXTENSION_RULES[this.srcExtension] || null;
302307
}
303308
}

www/mods/oneloader/mod.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name":"OneLoader assistant",
55
"description": "A helper mod for OneLoader",
66
"manifestVersion": 1,
7-
"version": "1.4.2",
7+
"version": "1.4.3",
88
"_flags":[
99
"prevent_disable",
1010
"randomize_plugin_name"

www/mods/oneloader/oneloader-fix-videos.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,24 @@ if ($modLoader.$nwMajor < 45) {
1515
clearInterval(a);
1616
return;
1717
}
18-
if (vidObj.source.readyState === 4 && (vidObj.source.buffered.end(0) >= vidObj.source.duration) && vidObj.source.ended) {
19-
window._logLine("YANFLY VIDEO Revoking object url");
20-
URL.revokeObjectURL(objectURL);
21-
clearInterval(a);
22-
}
2318
}, 300);
2419
return vidObj;
2520
} else {
2621
old.call(this, ...arguments);
2722
}
2823
};
2924

25+
let oldDestroy = PIXI.VideoBaseTexture.destroy;
26+
PIXI.VideoBaseTexture.destroy = function() {
27+
let cs = this.source.src;
28+
console.log(cs);
29+
if (cs.startsWith("blob:")) {
30+
window._logLine("YANFLY VIDEO Revoking object url");
31+
URL.revokeObjectURL(cs);
32+
}
33+
oldDestroy.call(this, ...arguments);
34+
}
35+
3036
let old_stock_playvideo = Graphics._playVideo;
3137
let old_onvideoend = Graphics._onVideoEnd;
3238
let ourl = Symbol("ObjectURL");

0 commit comments

Comments
 (0)