mirror of
https://github.com/marcrobledo/savegame-editors.git
synced 2025-04-28 09:05:10 +00:00
* added MK7 editor * fixed KI:Uprising weapon saving * BOTW: * added Wii U/Switch mode transfer * fixed scrolling topbar * added compatibility with Kiosk version * master editor: revamp and faster savegame-editor.js has been updated with fixes and performance improvements, also using now fetch to retrieve example files
45 lines
816 B
JavaScript
45 lines
816 B
JavaScript
/*
|
|
Picross 3D round 2 for HTML5 Save Editor v20160704
|
|
by Marc Robledo 2016
|
|
*/
|
|
|
|
SavegameEditor={
|
|
Name:'Picross 3D: round 2',
|
|
Filename:'SAVEDATA',
|
|
|
|
AmiiboOffset:0x1a4c,
|
|
|
|
unlockAmiiboPuzzles:function(){
|
|
for(var i=0; i<9; i++){
|
|
var offset=this.AmiiboOffset+i*16;
|
|
var b=tempFile.readU8(offset);
|
|
if(!(b & 0x09)){
|
|
tempFile.writeU8(offset, b+0x09);
|
|
}
|
|
}
|
|
setValue('amiibocount', 9);
|
|
},
|
|
|
|
/* check if savegame is valid */
|
|
checkValidSavegame:function(){
|
|
return (tempFile.fileSize==45688)
|
|
},
|
|
|
|
/* load function */
|
|
load:function(){
|
|
tempFile.fileName='SAVEDATA';
|
|
|
|
var unlockedAmiibos=0;
|
|
for(var i=0; i<9; i++){
|
|
if(tempFile.readU8(this.AmiiboOffset+i*16) & 0x09){
|
|
unlockedAmiibos++;
|
|
}
|
|
}
|
|
setValue('amiibocount', unlockedAmiibos);
|
|
},
|
|
|
|
|
|
/* save function */
|
|
save:function(){
|
|
}
|
|
} |