mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-07 12:28:39 +00:00
Add Voice/VOP support for uploading
This commit is contained in:
parent
e40c954570
commit
f1d8413d36
2 changed files with 5 additions and 2 deletions
|
@ -14,12 +14,13 @@ namespace LBPUnion.ProjectLighthouse.Helpers {
|
|||
if(file.FileType == LbpFileType.Unknown) file.FileType = DetermineFileType(file.Data);
|
||||
|
||||
return file.FileType switch {
|
||||
LbpFileType.FileArchive => false,
|
||||
LbpFileType.Unknown => false,
|
||||
LbpFileType.Texture => true,
|
||||
LbpFileType.Script => false,
|
||||
LbpFileType.Level => true,
|
||||
LbpFileType.FileArchive => false,
|
||||
LbpFileType.Voice => true,
|
||||
LbpFileType.Plan => true,
|
||||
LbpFileType.Unknown => false,
|
||||
#if DEBUG
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(file), $"Unhandled file type ({file.FileType}) in FileHelper.IsFileSafe()"),
|
||||
#else
|
||||
|
@ -40,6 +41,7 @@ namespace LBPUnion.ProjectLighthouse.Helpers {
|
|||
return Encoding.ASCII.GetString(header) switch {
|
||||
"TEX" => LbpFileType.Texture,
|
||||
"FSH" => LbpFileType.Script,
|
||||
"VOB" => LbpFileType.Voice,
|
||||
"LVL" => LbpFileType.Level,
|
||||
"PLN" => LbpFileType.Plan,
|
||||
_ => LbpFileType.Unknown,
|
||||
|
|
|
@ -5,6 +5,7 @@ namespace LBPUnion.ProjectLighthouse.Types.Files {
|
|||
Level, // LVL
|
||||
FileArchive, // .farc, (ends with FARC)
|
||||
Plan, // PLN, uploaded with levels
|
||||
Voice, // VOB, voice data
|
||||
Unknown,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue