Temp fix for AI parsing.

This commit is contained in:
Razmoth
2022-12-13 23:53:27 +04:00
parent ee86efa0c8
commit 925c42fff2
3 changed files with 6 additions and 11 deletions

View File

@@ -250,7 +250,7 @@ namespace AssetStudioGUI
case ClassIDType.MiHoYoBinData:
if (indexObject.Names.TryGetValue(objectReader.m_PathID, out var binName))
{
var path = ResourceIndex.GetContainerFromBinName(file, binName);
var path = ResourceIndex.GetContainerFromBinName(binName);
asset.Container = path;
asset.Name = !string.IsNullOrEmpty(path) ? Path.GetFileName(path) : binName;
}
@@ -430,7 +430,7 @@ namespace AssetStudioGUI
var game = GameManager.GetGame("GI");
if (Path.GetExtension(assetsFile.originalPath) == game.Extension)
{
path = ResourceIndex.GetContainerFromBinName(assetsFile.originalPath, binName);
path = ResourceIndex.GetContainerFromBinName(binName);
}
else
{