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,
|
||||
RemoveExtension = this.RemoveExtension,
|
||||
GameName = this.GameName,
|
||||
InputDepot = this.InputDepot.Clone() as DepotInformation,
|
||||
OutputDepot = this.OutputDepot.Clone() as DepotInformation,
|
||||
InputDepot = this.InputDepot?.Clone() as DepotInformation,
|
||||
OutputDepot = this.OutputDepot?.Clone() as DepotInformation,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -613,8 +613,8 @@ namespace SabreTools.DatFiles
|
||||
AddExtension = this.AddExtension,
|
||||
RemoveExtension = this.RemoveExtension,
|
||||
GameName = this.GameName,
|
||||
InputDepot = this.InputDepot.Clone() as DepotInformation,
|
||||
OutputDepot = this.OutputDepot.Clone() as DepotInformation,
|
||||
InputDepot = this.InputDepot?.Clone() as DepotInformation,
|
||||
OutputDepot = this.OutputDepot?.Clone() as DepotInformation,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -96,8 +96,8 @@ namespace SabreTools.Features
|
||||
Parser.ParseInto(datdata, datfile, int.MaxValue, keep: true);
|
||||
|
||||
// Set depot information
|
||||
datdata.Header.InputDepot = Header.InputDepot.Clone() as DepotInformation;
|
||||
datdata.Header.OutputDepot = Header.OutputDepot.Clone() as DepotInformation;
|
||||
datdata.Header.InputDepot = Header.InputDepot?.Clone() as DepotInformation;
|
||||
datdata.Header.OutputDepot = Header.OutputDepot?.Clone() as DepotInformation;
|
||||
|
||||
// If we have overridden the header skipper, set it now
|
||||
if (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
||||
@@ -135,8 +135,8 @@ namespace SabreTools.Features
|
||||
}
|
||||
|
||||
// Set depot information
|
||||
datdata.Header.InputDepot = Header.InputDepot.Clone() as DepotInformation;
|
||||
datdata.Header.OutputDepot = Header.OutputDepot.Clone() as DepotInformation;
|
||||
datdata.Header.InputDepot = Header.InputDepot?.Clone() as DepotInformation;
|
||||
datdata.Header.OutputDepot = Header.OutputDepot?.Clone() as DepotInformation;
|
||||
|
||||
// If we have overridden the header skipper, set it now
|
||||
if (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace SabreTools.Features
|
||||
Remover.ApplyRemovals(datdata);
|
||||
|
||||
// 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 (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
||||
@@ -119,7 +119,7 @@ namespace SabreTools.Features
|
||||
Remover.ApplyRemovals(datdata);
|
||||
|
||||
// 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 (!string.IsNullOrEmpty(Header.HeaderSkipper))
|
||||
|
||||
Reference in New Issue
Block a user