mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 22:40:27 +00:00
Fix extension lookup for archive infos
This commit is contained in:
parent
f1898bcbc8
commit
32b80c0b9e
7 changed files with 9 additions and 8 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -236,6 +236,7 @@ namespace FirstPlugin
|
|||
{ ".fvmb", "bfres" },
|
||||
{ ".fvbb", "bfres" },
|
||||
{ ".fspb", "bfres" },
|
||||
{ ".ftxb", "bntx" },
|
||||
{ ".fsnb", "bfres" },
|
||||
};
|
||||
}
|
||||
|
|
Binary file not shown.
Binary file not shown.
|
@ -517,12 +517,6 @@ namespace Switch_Toolbox.Library
|
|||
Extension = FindMatch(archiveFileInfo.FileData);
|
||||
}
|
||||
|
||||
if (ArchiveFileInfo.ExtensionImageKeyLookup != null)
|
||||
{
|
||||
if (ArchiveFileInfo.ExtensionImageKeyLookup.ContainsKey(Extension))
|
||||
SetImageKey(ArchiveFileInfo.ExtensionImageKeyLookup[Extension]);
|
||||
}
|
||||
|
||||
switch (Extension)
|
||||
{
|
||||
case ".bntx": SetImageKey("bntx"); break;
|
||||
|
@ -531,8 +525,8 @@ namespace Switch_Toolbox.Library
|
|||
case ".aamp": SetImageKey("aamp"); break;
|
||||
case ".bfres": SetImageKey("bfres"); break;
|
||||
case ".sbfres": SetImageKey("sbfres"); break;
|
||||
case ".dds":
|
||||
case ".tga":
|
||||
case ".dds":
|
||||
case ".tga":
|
||||
case ".jpg":
|
||||
case ".jpeg":
|
||||
case ".tiff":
|
||||
|
@ -543,6 +537,12 @@ namespace Switch_Toolbox.Library
|
|||
|
||||
default: SetImageKey("fileBlank"); break;
|
||||
}
|
||||
|
||||
if (ArchiveFileInfo.ExtensionImageKeyLookup != null)
|
||||
{
|
||||
if (ArchiveFileInfo.ExtensionImageKeyLookup.ContainsKey(Extension))
|
||||
SetImageKey(ArchiveFileInfo.ExtensionImageKeyLookup[Extension]);
|
||||
}
|
||||
}
|
||||
|
||||
private void SetImageKey(string Key) {
|
||||
|
|
Loading…
Reference in a new issue