mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-07-13 05:58:34 +00:00
Core - Move InvalidDLCPackage class into DLCPackage.cs
This commit is contained in:
@@ -82,7 +82,7 @@ namespace PckStudio.Core.DLC
|
||||
DLCPackageType.MG01 => new DLCBattlePackage(name, identifier),
|
||||
DLCPackageType.MG02 => new DLCMiniGamePackage(name, identifier, packageType, MiniGameId.Tumble),
|
||||
DLCPackageType.MG03 => new DLCMiniGamePackage(name, identifier, packageType, MiniGameId.Glide),
|
||||
DLCPackageType.Invalid => InvalidDLCPackage.Instance,
|
||||
DLCPackageType.Invalid => DLCPackage.Invalid,
|
||||
_ => throw new ArgumentException("Unable to create DLC Package of 'Unknown' type."),
|
||||
};
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace PckStudio.Core.DLC
|
||||
throw new Exception($"{nameof(Platform)} is Unknown.");
|
||||
|
||||
if (!IsValidPckFile(fileInfo))
|
||||
return InvalidDLCPackage.Instance;
|
||||
return DLCPackage.Invalid;
|
||||
|
||||
using Stream stream = fileInfo.OpenRead();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user