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

fixed a small issue in APS GBA

This commit is contained in:
Marc Robledo 2023-03-31 20:09:07 +02:00
parent 4ed1066771
commit f1164e7f67
2 changed files with 2 additions and 2 deletions

View file

@ -14,7 +14,7 @@
*/
var PRECACHE_ID='rom-patcher-js';
var PRECACHE_VERSION='v28';
var PRECACHE_VERSION='v28b';
var PRECACHE_URLS=[
'/RomPatcher.js/','/RomPatcher.js/index.html',
'/RomPatcher.js/manifest.json',

View file

@ -68,7 +68,7 @@ APSGBA.prototype.apply=function(romFile, validate){
for(var i=0; i<this.records.length; i++){
romFile.seek(this.records[i].offset);
tempFile.seek(this.records[i].offset);
for(var j=0; j<APS_GBA_RECORD_SIZE; j++){
for(var j=0; j<APS_GBA_BLOCK_SIZE; j++){
tempFile.writeU8(romFile.readU8() ^ this.records[i].xorBytes[j]);
}