Process shared map includes as part of the mod rules.
This ensures that they are only updated once instead of repeating the updates for every map that includes them.
This commit is contained in:
@@ -82,9 +82,10 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
|
||||
Console.Write(" Updating map... ");
|
||||
|
||||
var externalFilenames = new HashSet<string>();
|
||||
try
|
||||
{
|
||||
manualSteps = UpdateUtils.UpdateMap(modData, mapPackage, rule, out mapFiles);
|
||||
manualSteps = UpdateUtils.UpdateMap(modData, mapPackage, rule, out mapFiles, externalFilenames);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -104,6 +105,13 @@ namespace OpenRA.Mods.Common.UtilityCommands
|
||||
mapFiles.Save();
|
||||
Console.WriteLine("COMPLETE");
|
||||
|
||||
if (externalFilenames.Any())
|
||||
{
|
||||
Console.WriteLine(" The following shared yaml files referenced by the map have been ignored:");
|
||||
Console.WriteLine(UpdateUtils.FormatMessageList(externalFilenames, 1));
|
||||
Console.WriteLine(" These files are assumed to have already been updated by the --update-mod command");
|
||||
}
|
||||
|
||||
if (manualSteps.Any())
|
||||
{
|
||||
Console.WriteLine(" Manual changes are required to complete this update:");
|
||||
|
||||
Reference in New Issue
Block a user