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:
parent
4ed1066771
commit
f1164e7f67
2 changed files with 2 additions and 2 deletions
|
@ -14,7 +14,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
var PRECACHE_ID='rom-patcher-js';
|
var PRECACHE_ID='rom-patcher-js';
|
||||||
var PRECACHE_VERSION='v28';
|
var PRECACHE_VERSION='v28b';
|
||||||
var PRECACHE_URLS=[
|
var PRECACHE_URLS=[
|
||||||
'/RomPatcher.js/','/RomPatcher.js/index.html',
|
'/RomPatcher.js/','/RomPatcher.js/index.html',
|
||||||
'/RomPatcher.js/manifest.json',
|
'/RomPatcher.js/manifest.json',
|
||||||
|
|
|
@ -68,7 +68,7 @@ APSGBA.prototype.apply=function(romFile, validate){
|
||||||
for(var i=0; i<this.records.length; i++){
|
for(var i=0; i<this.records.length; i++){
|
||||||
romFile.seek(this.records[i].offset);
|
romFile.seek(this.records[i].offset);
|
||||||
tempFile.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]);
|
tempFile.writeU8(romFile.readU8() ^ this.records[i].xorBytes[j]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue