mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
Some archive parent fixes for texture manager
This commit is contained in:
parent
858a85f641
commit
8529b0b818
2 changed files with 11 additions and 2 deletions
|
@ -504,7 +504,7 @@ namespace LayoutBXLYT.Cafe
|
|||
else
|
||||
TextureManager.Platform = TextureManager.PlatformType.WiiU;
|
||||
|
||||
TextureManager.ArchiveParent = FileInfo.IFileInfo.ArchiveParent;
|
||||
TextureManager.LayoutFile = this;
|
||||
|
||||
bool setRoot = false;
|
||||
bool setGroupRoot = false;
|
||||
|
|
|
@ -11,12 +11,17 @@ namespace LayoutBXLYT
|
|||
{
|
||||
public class TextureManager : IDisposable
|
||||
{
|
||||
public BxlytHeader LayoutFile;
|
||||
|
||||
public Dictionary<string, BNTX> BinaryContainers = new Dictionary<string, BNTX>();
|
||||
|
||||
//The archive to put textures in if necessary
|
||||
public Dictionary<string, IArchiveFile> ArchiveFile = new Dictionary<string, IArchiveFile>();
|
||||
|
||||
public IArchiveFile ArchiveParent;
|
||||
public IArchiveFile ArchiveParent
|
||||
{
|
||||
get { return LayoutFile.FileInfo.IFileInfo.ArchiveParent; }
|
||||
}
|
||||
|
||||
public PlatformType Platform = PlatformType.WiiU;
|
||||
|
||||
|
@ -55,6 +60,8 @@ namespace LayoutBXLYT
|
|||
break;
|
||||
case PlatformType.WiiU:
|
||||
{
|
||||
if (ArchiveParent == null) return null;
|
||||
|
||||
foreach (var file in ArchiveParent.Files)
|
||||
{
|
||||
if (file.FileName == name)
|
||||
|
@ -92,6 +99,8 @@ namespace LayoutBXLYT
|
|||
case PlatformType.WiiU:
|
||||
{
|
||||
var archive = ArchiveParent;
|
||||
if (archive == null) return null;
|
||||
|
||||
var bflim = BFLIM.CreateNewFromImage();
|
||||
if (bflim == null)
|
||||
return textures;
|
||||
|
|
Loading…
Add table
Reference in a new issue