diff --git a/.appveyor.yml b/.appveyor.yml index 5a6898af..93ba5971 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -7,3 +7,5 @@ image: build_script: - cmd: compile.bat Release x86 + +test: off diff --git a/Tinke/Sistema.cs b/Tinke/Sistema.cs index a7e2c307..c7ee5ee8 100644 --- a/Tinke/Sistema.cs +++ b/Tinke/Sistema.cs @@ -1576,7 +1576,11 @@ private void btnSaveROM_Click(object sender, EventArgs e) Nitro.NDS.Write_Files(files, accion.ROMFile, accion.Root, accion.SortedIDs); currPos += (uint)new FileInfo(files).Length; - // Escribimos cabecera + // Update the ROM size values of the header + header.ROMsize = currPos; + header.tamaño = (uint)Math.Ceiling(Math.Log(currPos, 2)); + header.tamaño = (uint)Math.Pow(2, header.tamaño); + // Get Header CRC string tempHeader = Path.GetTempFileName(); Nitro.NDS.EscribirCabecera(tempHeader, header, accion.ROMFile); @@ -1585,9 +1589,6 @@ private void btnSaveROM_Click(object sender, EventArgs e) brHeader.Close(); File.Delete(tempHeader); - header.ROMsize = currPos; - header.tamaño = (uint)Math.Ceiling(Math.Log(currPos, 2)); - header.tamaño = (uint)Math.Pow(2, header.tamaño); // Write header string header_file = Path.GetTempFileName(); Nitro.NDS.EscribirCabecera(header_file, header, accion.ROMFile);