mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
Add some more types.
This commit is contained in:
parent
41417753e3
commit
95f22c2695
1 changed files with 11 additions and 1 deletions
|
@ -98,6 +98,10 @@ namespace FirstPlugin
|
|||
using (reader.TemporarySeek(fileStartOffset, SeekOrigin.Begin))
|
||||
{
|
||||
string magic = reader.ReadString(4);
|
||||
|
||||
reader.Seek(-4);
|
||||
uint magicHex = reader.ReadUInt32();
|
||||
|
||||
if (magic == "FWAV") ext = ".bfwav";
|
||||
if (magic == "MTXT") ext = ".bctex";
|
||||
if (magic == "MCAN") ext = ".bccam";
|
||||
|
@ -113,7 +117,11 @@ namespace FirstPlugin
|
|||
reader.ReadUInt32();
|
||||
file.FileName = $"imats/" + reader.ReadZeroTerminatedString();
|
||||
}
|
||||
if (magic.Contains("Lua"))
|
||||
else if(magicHex == 0xB3667893)
|
||||
file.FileName = $"blend_spaces/" + file.FileName;
|
||||
else if (magicHex == 0x73F37F6F)
|
||||
file.FileName = $"audio_info/" + file.FileName;
|
||||
else if (magic.Contains("Lua"))
|
||||
file.FileName = $"scripts/" + file.FileName + ".lua";
|
||||
else if (magic == "MSAS")
|
||||
{
|
||||
|
@ -132,6 +140,8 @@ namespace FirstPlugin
|
|||
reader.ReadUInt32();
|
||||
file.FileName = $"script_components/" + reader.ReadZeroTerminatedString();
|
||||
}
|
||||
else if (magic == "MPSY")
|
||||
file.FileName = $"particles/" + file.FileName;
|
||||
else if (magic == "MMDL")
|
||||
file.FileName = $"models/" + file.FileName;
|
||||
else if (magic == "MCAN")
|
||||
|
|
Loading…
Reference in a new issue