Add support for plan files

This commit is contained in:
jvyden 2021-10-23 04:55:28 -04:00
commit d0a663f2b1
No known key found for this signature in database
GPG key ID: 18BCF2BE0262B278
2 changed files with 3 additions and 0 deletions

View file

@ -18,6 +18,7 @@ namespace LBPUnion.ProjectLighthouse.Helpers {
LbpFileType.Script => false,
LbpFileType.Level => true,
LbpFileType.FileArchive => false,
LbpFileType.Plan => true,
LbpFileType.Unknown => false,
#if DEBUG
_ => throw new ArgumentOutOfRangeException(nameof(file), $"Unhandled file type ({file.FileType}) in FileHelper.IsFileSafe()"),
@ -40,6 +41,7 @@ namespace LBPUnion.ProjectLighthouse.Helpers {
"TEX" => LbpFileType.Texture,
"FSH" => LbpFileType.Script,
"LVL" => LbpFileType.Level,
"PLN" => LbpFileType.Plan,
_ => LbpFileType.Unknown,
};
}

View file

@ -4,6 +4,7 @@ namespace LBPUnion.ProjectLighthouse.Types.Files {
Texture, // TEX
Level, // LVL
FileArchive, // .farc, (ends with FARC)
Plan, // PLN, uploaded with levels
Unknown,
}
}