RemovePackage: containment under Mods and RemovedMods, name round-trip, no links; Remove dialog keeps other buttons
Refuses names the filesystem rewrites (dot names, trailing dot or space, device names, stream colon), anything that does not resolve to a strict child of the mods folder under the same name, and link packages. A fault with no known package names (all mods), so no Remove button. A removal drops only its own button and the dialog returns to the rest. Unity compile not yet run. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
46a2296ce8
commit
b76e212d60
4 changed files with 94 additions and 19 deletions
|
|
@ -66,7 +66,7 @@ public static class ShipModShips
|
|||
catch (Exception error)
|
||||
{
|
||||
visual?.Destroy();
|
||||
faults.Add(new ShipModCatalog.Exclusion { Package = catalog.Get(hull.Visual)?.Id ?? hull.Name, Reason = $"{hull.Name}: {error.Message}" });
|
||||
faults.Add(new ShipModCatalog.Exclusion { Package = catalog.Get(hull.Visual)?.Id ?? "(all mods)", Reason = $"{hull.Name}: {error.Message}" });
|
||||
}
|
||||
}
|
||||
if (faults.Count > 0) throw new ImportFault(faults.ToArray());
|
||||
|
|
|
|||
Loading…
Reference in a new issue