removed botw save format converter (wii u <-> ns) since it wasn't working properly

This commit is contained in:
Marc Robledo
2025-07-23 17:11:35 +02:00
parent 1d8f853dcd
commit ecdc74fbe5
3 changed files with 2 additions and 15 deletions

View File

@@ -30,7 +30,7 @@ caches.keys().then(function(cacheNames){
});
var PRECACHE_ID='zelda-botw-editor';
var PRECACHE_VERSION='v7b';
var PRECACHE_VERSION='v7c';
var PRECACHE_URLS=[
//is hashes file too big for cacheing?
'/savegame-editors/zelda-botw/','/savegame-editors/zelda-botw/index.html',

View File

@@ -44,7 +44,7 @@
<div id="toolbar" class="hidden padding-vertical">
<div class="row wrapper">
<div class="twelve columns text-center">
<span class="clickable" onclick="SavegameEditor.changeEndianess()" id="span-version"></span>
<span id="span-version"></span>
|
<button id="tab-button-home" title="Home" class="tab-button active" onclick="showTab('home')"><i class="tab-icon home"></i></button>
<button id="tab-button-weapons" title="Weapons" class="tab-button" onclick="showTab('weapons')"><i class="tab-icon weapons"></i></button>

View File

@@ -331,19 +331,6 @@ SavegameEditor={
return arr2;
},
changeEndianess:function(){
var tempFileByteSwapped=new MarcFile(tempFile.fileSize);
tempFileByteSwapped.fileType=tempFile.fileType;
tempFileByteSwapped.fileName=tempFile.fileName;
tempFileByteSwapped.littleEndian=!tempFile.littleEndian;
for(var i=0; i<tempFile.fileSize; i+=4){
tempFileByteSwapped.writeU32(i, tempFile.readU32(i));
}
tempFile=tempFileByteSwapped;
this.checkValidSavegame();
},
/* check if savegame is valid */
_checkValidSavegameByConsole:function(switchMode){
var CONSOLE=switchMode?'Switch':'Wii U';