mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-25 05:40:21 -04:00
Add names of pptr objects to object dumps
This commit is contained in:
parent
316837dfdf
commit
18813b22c3
@ -23,6 +23,8 @@ namespace AssetStudio
|
||||
public SerializedType serializedType;
|
||||
public int classID;
|
||||
public uint byteSize;
|
||||
[JsonIgnore]
|
||||
public string Name;
|
||||
private static JsonSerializerOptions jsonOptions;
|
||||
|
||||
static Object()
|
||||
|
@ -6,6 +6,7 @@ namespace AssetStudio
|
||||
{
|
||||
public int m_FileID;
|
||||
public long m_PathID;
|
||||
public string Name => TryGet(out var result) ? result.Name : string.Empty;
|
||||
|
||||
private SerializedFile _assetsFile;
|
||||
private int _index = -2; //-2 - Prepare, -1 - Missing
|
||||
|
@ -174,6 +174,7 @@ namespace AssetStudioCLI
|
||||
fileAssetsList.Add(assetItem);
|
||||
}
|
||||
|
||||
asset.Name = assetItem.Text;
|
||||
Progress.Report(++i, objectCount);
|
||||
}
|
||||
foreach (var asset in fileAssetsList)
|
||||
|
@ -301,6 +301,7 @@ namespace AssetStudioGUI
|
||||
{
|
||||
exportableAssets.Add(assetItem);
|
||||
}
|
||||
asset.Name = assetItem.Text;
|
||||
Progress.Report(++i, objectCount);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user