Unstable 0.17.0.0
This commit is contained in:
+19
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Xml.Linq;
|
||||
|
||||
namespace Barotrauma
|
||||
{
|
||||
public class RegularPackage : ContentPackage
|
||||
{
|
||||
public RegularPackage(XDocument doc, string path) : base(doc, path)
|
||||
{
|
||||
AssertCondition(!doc.Root.GetAttributeBool("corepackage", false), "Expected a regular package, got a core package");
|
||||
}
|
||||
|
||||
protected override void HandleLoadException(Exception e)
|
||||
{
|
||||
UnloadPackage();
|
||||
DebugConsole.ThrowError($"Failed to load package \"{Name}\"", e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user