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

fix truncation logic (truncate is a property of class IPS)

This commit is contained in:
DSG (Destitute Streetdwelling Guttersnipe) 2023-09-23 16:11:49 +07:00 committed by GitHub
parent 8e2d73eb21
commit 2ba96ca093
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,8 +63,8 @@ IPS.prototype.export=function(fileName){
} }
tempFile.writeString('EOF'); tempFile.writeString('EOF');
if(rec && rec.truncate) if(this.truncate)
tempFile.writeU24(rec.truncate); tempFile.writeU24(this.truncate);
return tempFile return tempFile