mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[DatItem] Get correct size on merge
This commit is contained in:
@@ -723,7 +723,9 @@ namespace SabreTools.Library.DatItems
|
|||||||
// Roms have more infomration to save
|
// Roms have more infomration to save
|
||||||
if (file.Type == ItemType.Rom)
|
if (file.Type == ItemType.Rom)
|
||||||
{
|
{
|
||||||
((Rom)saveditem).Size = ((Rom)saveditem).Size;
|
((Rom)saveditem).Size = (((Rom)saveditem).Size == -1 && ((Rom)file).Size != -1
|
||||||
|
? ((Rom)file).Size
|
||||||
|
: ((Rom)saveditem).Size);
|
||||||
((Rom)saveditem).CRC = (String.IsNullOrWhiteSpace(((Rom)saveditem).CRC) && !String.IsNullOrWhiteSpace(((Rom)file).CRC)
|
((Rom)saveditem).CRC = (String.IsNullOrWhiteSpace(((Rom)saveditem).CRC) && !String.IsNullOrWhiteSpace(((Rom)file).CRC)
|
||||||
? ((Rom)file).CRC
|
? ((Rom)file).CRC
|
||||||
: ((Rom)saveditem).CRC);
|
: ((Rom)saveditem).CRC);
|
||||||
|
|||||||
Reference in New Issue
Block a user