mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-25 05:50:22 +00:00
Some more pak and model fixes
This commit is contained in:
parent
db49432909
commit
b6789443ce
2 changed files with 4 additions and 2 deletions
|
@ -38,7 +38,8 @@ namespace DKCTF
|
|||
/// Determines which variant of the file to parse. Switch reads strings and materials differently.
|
||||
/// </summary>
|
||||
bool IsSwitch => this.FileHeader.FormType == "SMDL" && this.FileHeader.VersionA >= 0x3A ||
|
||||
this.FileHeader.FormType == "CMDL" && this.FileHeader.VersionA >= 0x35;
|
||||
this.FileHeader.FormType == "CMDL" && this.FileHeader.VersionA >= 0x35 ||
|
||||
this.FileHeader.FormType == "WMDL" && this.FileHeader.VersionA >= 0x36;
|
||||
|
||||
/// <summary>
|
||||
/// The meta data header for parsing gpu buffers and decompressing.
|
||||
|
|
|
@ -98,7 +98,8 @@ namespace DKCTF
|
|||
|
||||
foreach (var c in CharFiles)
|
||||
{
|
||||
SkeletonFiles[c.Value.SkeletonFileID.ToString()].FileName = $"Characters/{c.Value.Name}/Models/{c.Value.SkeletonFileID}.skel";
|
||||
if (SkeletonFiles.ContainsKey(c.Value.SkeletonFileID.ToString()))
|
||||
SkeletonFiles[c.Value.SkeletonFileID.ToString()].FileName = $"Characters/{c.Value.Name}/Models/{c.Value.SkeletonFileID}.skel";
|
||||
|
||||
foreach (var m in c.Value.Models)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue