mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-05 19:38:39 +00:00
Support paintings being uploaded
This commit is contained in:
parent
84653c9293
commit
5511c12631
2 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,7 @@ namespace LBPUnion.ProjectLighthouse.Helpers {
|
|||
|
||||
return file.FileType switch {
|
||||
LbpFileType.FileArchive => false,
|
||||
LbpFileType.Painting => true,
|
||||
LbpFileType.Unknown => false,
|
||||
LbpFileType.Texture => true,
|
||||
LbpFileType.Script => false,
|
||||
|
@ -39,6 +40,7 @@ namespace LBPUnion.ProjectLighthouse.Helpers {
|
|||
byte[] header = reader.ReadBytes(3);
|
||||
|
||||
return Encoding.ASCII.GetString(header) switch {
|
||||
"PTG" => LbpFileType.Painting,
|
||||
"TEX" => LbpFileType.Texture,
|
||||
"FSH" => LbpFileType.Script,
|
||||
"VOP" => LbpFileType.Voice,
|
||||
|
|
|
@ -6,6 +6,7 @@ namespace LBPUnion.ProjectLighthouse.Types.Files {
|
|||
FileArchive, // .farc, (ends with FARC)
|
||||
Plan, // PLN, uploaded with levels
|
||||
Voice, // VOP, voice data
|
||||
Painting, // PTG, paintings
|
||||
Unknown,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue