OBT/1.2.0(Spring Update)

Sync with Upstream
This commit is contained in:
NotAlwaysTrue
2026-04-25 13:25:41 +08:00
committed by GitHub
parent 5207b381b7
commit 59bc21973a
421 changed files with 24090 additions and 11391 deletions
@@ -199,9 +199,16 @@ namespace Barotrauma
try
{
return success(doc.Root.GetAttributeBool("corepackage", false)
ContentPackage contentPackage = doc.Root.GetAttributeBool("corepackage", false)
? new CorePackage(doc, path)
: new RegularPackage(doc, path));
: new RegularPackage(doc, path);
if (System.IO.Path.GetFileNameWithoutExtension(path)?.Any(char.IsUpper) is true)
{
DebugConsole.ThrowError($"Invalid filename casing. Please rename \"filelist.xml\" so it is entirely lowercase.", contentPackage: contentPackage);
}
return success(contentPackage);
}
catch (Exception e)
{