Skip to content
This repository has been archived by the owner on May 11, 2024. It is now read-only.

Commit

Permalink
- [GUI] fix a bug with AssetBrowser where some assets would be igno…
Browse files Browse the repository at this point in the history
…red.
  • Loading branch information
Razmoth committed Feb 3, 2024
1 parent 50e0af0 commit 983da00
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions AssetStudio.GUI/AssetBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,18 @@ private void BuildAssetData(List<AssetItem> exportableAssets, AssetEntry[] entri
if (pptr.TryGet(out var obj))
{
var item = objectAssetItemDic[obj];
if (entries.Any(x => x.Container == container))
{
item.Container = container;
}
else
{
exportableAssets.Remove(item);
}
item.Container = container;
}
}
containers.Clear();
for (int i = exportableAssets.Count - 1; i >= 0; i--)
{
var asset = exportableAssets[i];
if (!entries.Any(x => x.Container == asset.Container && x.Name == asset.Text && x.Type == asset.Type && x.PathID == asset.m_PathID))
{
exportableAssets.Remove(asset);
}
}
}
private void ProcessAssetData(Object asset, List<AssetItem> exportableAssets, AssetEntry[] entries, Dictionary<Object, AssetItem> objectAssetItemDic, List<(PPtr<Object>, string)> mihoyoBinDataNames, List<(PPtr<Object>, string)> containers)
{
Expand Down

0 comments on commit 983da00

Please sign in to comment.