1
0
Fork 0
mirror of https://github.com/marcrobledo/RomPatcher.js.git synced 2025-06-27 16:25:54 +00:00

version 3.0RC3

This commit is contained in:
Marc Robledo 2024-08-21 08:53:23 +02:00
parent 4a928085fc
commit b2f1b8d57e
6 changed files with 201 additions and 188 deletions

View file

@ -1,5 +1,5 @@
/*
* BinFile.js (last update: 2024-02-27)
* BinFile.js (last update: 2024-08-21)
* by Marc Robledo, https://www.marcrobledo.com
*
* a JS class for reading/writing sequentially binary data from/to a file
@ -188,7 +188,7 @@ BinFile.prototype.slice = function (offset, len, doNotClone) {
else if (len === 0)
throw new Error('zero length provided for slicing');
else
offset = Math.floor(offset);
len = Math.floor(len);
if (offset === 0 && len === this.fileSize && doNotClone)
return this;