mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Fix depot cloning issue
This commit is contained in:
@@ -563,8 +563,8 @@ namespace SabreTools.DatFiles
|
|||||||
AddExtension = this.AddExtension,
|
AddExtension = this.AddExtension,
|
||||||
RemoveExtension = this.RemoveExtension,
|
RemoveExtension = this.RemoveExtension,
|
||||||
GameName = this.GameName,
|
GameName = this.GameName,
|
||||||
InputDepot = this.InputDepot.Clone() as DepotInformation,
|
InputDepot = this.InputDepot?.Clone() as DepotInformation,
|
||||||
OutputDepot = this.OutputDepot.Clone() as DepotInformation,
|
OutputDepot = this.OutputDepot?.Clone() as DepotInformation,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -613,8 +613,8 @@ namespace SabreTools.DatFiles
|
|||||||
AddExtension = this.AddExtension,
|
AddExtension = this.AddExtension,
|
||||||
RemoveExtension = this.RemoveExtension,
|
RemoveExtension = this.RemoveExtension,
|
||||||
GameName = this.GameName,
|
GameName = this.GameName,
|
||||||
InputDepot = this.InputDepot.Clone() as DepotInformation,
|
InputDepot = this.InputDepot?.Clone() as DepotInformation,
|
||||||
OutputDepot = this.OutputDepot.Clone() as DepotInformation,
|
OutputDepot = this.OutputDepot?.Clone() as DepotInformation,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,8 +96,8 @@ namespace SabreTools.Features
|
|||||||
Parser.ParseInto(datdata, datfile, int.MaxValue, keep: true);
|
Parser.ParseInto(datdata, datfile, int.MaxValue, keep: true);
|
||||||
|
|
||||||
// Set depot information
|
// Set depot information
|
||||||
datdata.Header.InputDepot = Header.InputDepot.Clone() as DepotInformation;
|
datdata.Header.InputDepot = Header.InputDepot?.Clone() as DepotInformation;
|
||||||
datdata.Header.OutputDepot = Header.OutputDepot.Clone() as DepotInformation;
|
datdata.Header.OutputDepot = Header.OutputDepot?.Clone() as DepotInformation;
|
||||||
|
|
||||||
// If we have overridden the header skipper, set it now
|
// If we have overridden the header skipper, set it now
|
||||||
if (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
if (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
||||||
@@ -135,8 +135,8 @@ namespace SabreTools.Features
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Set depot information
|
// Set depot information
|
||||||
datdata.Header.InputDepot = Header.InputDepot.Clone() as DepotInformation;
|
datdata.Header.InputDepot = Header.InputDepot?.Clone() as DepotInformation;
|
||||||
datdata.Header.OutputDepot = Header.OutputDepot.Clone() as DepotInformation;
|
datdata.Header.OutputDepot = Header.OutputDepot?.Clone() as DepotInformation;
|
||||||
|
|
||||||
// If we have overridden the header skipper, set it now
|
// If we have overridden the header skipper, set it now
|
||||||
if (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
if (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ namespace SabreTools.Features
|
|||||||
Remover.ApplyRemovals(datdata);
|
Remover.ApplyRemovals(datdata);
|
||||||
|
|
||||||
// Set depot information
|
// Set depot information
|
||||||
datdata.Header.InputDepot = Header.InputDepot.Clone() as DepotInformation;
|
datdata.Header.InputDepot = Header.InputDepot?.Clone() as DepotInformation;
|
||||||
|
|
||||||
// If we have overridden the header skipper, set it now
|
// If we have overridden the header skipper, set it now
|
||||||
if (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
if (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
||||||
@@ -119,7 +119,7 @@ namespace SabreTools.Features
|
|||||||
Remover.ApplyRemovals(datdata);
|
Remover.ApplyRemovals(datdata);
|
||||||
|
|
||||||
// Set depot information
|
// Set depot information
|
||||||
datdata.Header.InputDepot = Header.InputDepot.Clone() as DepotInformation;
|
datdata.Header.InputDepot = Header.InputDepot?.Clone() as DepotInformation;
|
||||||
|
|
||||||
// If we have overridden the header skipper, set it now
|
// If we have overridden the header skipper, set it now
|
||||||
if (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
if (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
||||||
|
|||||||
Reference in New Issue
Block a user