diff --git a/TagTool/Commands/Porting/PortTagCommand.PortingOptions.cs b/TagTool/Commands/Porting/PortTagCommand.PortingOptions.cs index fcdeab0d..ab460769 100644 --- a/TagTool/Commands/Porting/PortTagCommand.PortingOptions.cs +++ b/TagTool/Commands/Porting/PortTagCommand.PortingOptions.cs @@ -137,9 +137,12 @@ public enum PortingFlags [PortingFlagDescription("Auto rescale gui during porting")] AutoRescaleGui = 1 << 20, + + [PortingFlagDescription("Auto Update map files")] + UpdateMapFiles = 1 << 21, // No [PortingFlagDescription] here means we'll flag names as the description. - Default = Print | Recursive | Merge | Scripts | Squads | ForgePalette | Elites | Audio | Dialogue | MatchShaders | GenerateShaders + Default = Print | Recursive | Merge | Scripts | Squads | ForgePalette | Elites | Audio | Dialogue | MatchShaders | GenerateShaders | UpdateMapFiles } /// diff --git a/TagTool/Commands/Porting/PortTagCommand.cs b/TagTool/Commands/Porting/PortTagCommand.cs index ea1b3ddf..966ad930 100644 --- a/TagTool/Commands/Porting/PortTagCommand.cs +++ b/TagTool/Commands/Porting/PortTagCommand.cs @@ -1256,10 +1256,13 @@ public CachedTag ConvertTagInternal(Stream cacheStream, Stream blamCacheStream, } } - _deferredActions.Add(() => + if (Flags.HasFlag(PortingFlags.UpdateMapFiles)) { - new UpdateMapFilesCommand(CacheContext).Execute(new List { }); - }); + _deferredActions.Add(() => + { + new UpdateMapFilesCommand(CacheContext).Execute(new List { }); + }); + } } break;