/* The legend of Zelda: Breath of the wild - Master editor v20190625 by Marc Robledo 2017-2019 */ var currentEditingItem=0; SavegameEditor={ Name:'The legend of Zelda: Breath of the wild (Master editor)', Filename:'game_data.sav', Version:20190625, /* Constants */ Constants:{ STRING_SIZE:0x20, STRING64_SIZE:0x80, //missing versions: 1.1.1, 1.1.2 and 1.4.1 VERSION: ['v1.0', 'v1.1', 'v1.2', 'v1.3', 'v1.3.1', 'Kiosk', 'v1.3.3','v1.3.4', 'v1.4', 'v1.5', 'v1.6', 'v1.6*', 'v1.6**','v1.6***'], FILESIZE: [896976, 897160, 897112, 907824, 907824, 916576, 1020648, 1020648, 1027208, 1027208, 1027216, 1027216, 1027216, 1027216], HEADER: [0x24e2, 0x24ee, 0x2588, 0x29c0, 0x2a46, 0x2f8e, 0x3ef8, 0x3ef9, 0x471a, 0x471b, 0x471e, 0x0f423d, 0x0f423e,0x0f423f] }, HashFilters:[ ['Amiibo', /WolfLink_|Amiibo/], ['Display flag names', /_DispNameFlag$/], ['DLC1', /100enemy/], ['DLC2', /Motorcycle/], ['Horses', /Horse_/], ['Defeated enemies', /Defeat_Enemy_|Defeated.+Num/], ['Items', /Porch|Cook/], ['Get flags', /IsGet_/], ['Korok', /HiddenKorok|OldKorok_/], ['Visited locations', /^Location_/], ['Compendium', /AlbumPicture|PictureBook/] ], Hashes:[], /* private functions */ _toHexInt:function(i){var s=i.toString(16);while(s.length<8)s='0'+s;return '0x'+s}, _writeBoolean:function(offset,val,arrayPos){if(arrayPos)tempFile.writeU32(offset+8*arrayPos,val?1:0);else tempFile.writeU32(offset,val?1:0)}, _writeValue:function(offset,val,arrayPos){if(arrayPos)tempFile.writeU32(offset+8*arrayPos,val);else tempFile.writeU32(offset,val)}, _writeFloat32:function(offset,val,arrayPos){if(arrayPos)tempFile.writeF32(offset+8*arrayPos,val);else tempFile.writeF32(offset,val)}, _writeString:function(offset,str){ for(var i=0; i<8; i++){ tempFile.writeBytes(offset,[0,0,0,0]); var fourBytes=str.substr(i*4, 4); for(j=0; j-1){ findHashesIn={}; for(var hash in HASHES){ if(this.HashFilters[regexFilter][1].test(HASHES[hash][1])){ findHashesIn[hash]=true; } } } var previousHashValue=0; for(var i=0x0c; ib.id)return 1; return 0; }); var HASHES_PER_PAGE=100; var nPages=parseInt(this.Hashes.length/HASHES_PER_PAGE); if(this.Hashes.length%HASHES_PER_PAGE!==0){ nPages++; } empty('select-page'); for(var i=0; ih){ document.getElementById('header').style.position='fixed'; document.getElementById('header').style.top='-'+h+'px'; }else{ document.getElementById('header').style.position='absolute'; document.getElementById('header').style.top='0px'; } } window.addEventListener('scroll', onScroll, false);