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
40 lines
774 B
JavaScript
40 lines
774 B
JavaScript
/*
|
|
Kirby's Blowout Blast for HTML5 Save Editor v20160704
|
|
by Marc Robledo 2016
|
|
*/
|
|
|
|
SavegameEditor={
|
|
Name:'Kirby\'s Blowout Blast',
|
|
Filename:'savedata.dat',
|
|
|
|
StatuesOffset:0x07,
|
|
|
|
unlockAmiiboPuzzles:function(){
|
|
for(var i=0; i<5; i++)
|
|
tempFile.writeU8(this.StatuesOffset+i*2, 0x01);
|
|
tempFile.writeU8(this.StatuesOffset+1, 0x01);
|
|
setValue('amiibocount', 5);
|
|
},
|
|
|
|
/* check if savegame is valid */
|
|
checkValidSavegame:function(){
|
|
return (tempFile.fileSize==1736)
|
|
},
|
|
|
|
/* load function */
|
|
load:function(){
|
|
tempFile.fileName='savedata.dat';
|
|
|
|
var unlockedStatues=0;
|
|
for(var i=0; i<5; i++){
|
|
if(tempFile.readU8(this.StatuesOffset+i*2))
|
|
unlockedStatues++;
|
|
}
|
|
setValue('amiibocount', unlockedStatues);
|
|
},
|
|
|
|
|
|
/* save function */
|
|
save:function(){
|
|
}
|
|
} |