/* savegame-editor.js v20200719 A library that lets you create easily a savegame editor. Made with vanilla JS. by Marc Robledo 2016-2020 http://www.marcrobledo.com/license */ /* LIBRARIES */ /* MODDED VERSION OF MarcFile.js v20181020 – Marc Robledo 2014-2018 – http://www.marcrobledo.com/license */ function MarcFile(a,b){“object”==typeof a&&a.files&&(a=a.files[0]);var c=!1;if(“object”==typeof a&&a.name&&a.size){if(“function”!=typeof window.FileReader)throw new Error(“Incompatible Browser”);c=!0,this.fileName=a.name,this.fileType=a.type,this.fileSize=a.size}else if(“number”==typeof a)this.fileName=”file.bin”,this.fileType=”application/octet-stream”,this.fileSize=a;else throw new Error(“Invalid source”);if(this.littleEndian=!1,c)this._fileReader=new FileReader,this._fileReader.marcFile=this,this._fileReader.addEventListener(“load”,function(){this.marcFile._u8array=new