mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-07-14 02:54:16 -04:00
improve ClassStruct read and parse
This commit is contained in:
@ -41,7 +41,7 @@ namespace Unity_Studio
|
||||
private string[] fileTypes = new string[] { "globalgamemanagers", "maindata.", "level*.", "*.assets", "*.sharedAssets", "CustomAssetBundle-*", "CAB-*", "BuildPlayer-*" };
|
||||
|
||||
Dictionary<string, Dictionary<string, string>> jsonMats;
|
||||
Dictionary<string, SortedDictionary<int, ClassStrStruct>> AllClassStructures = new Dictionary<string, SortedDictionary<int, ClassStrStruct>>();
|
||||
Dictionary<string, SortedDictionary<int, ClassStruct>> AllClassStructures = new Dictionary<string, SortedDictionary<int, ClassStruct>>();
|
||||
|
||||
private FMOD.System system = null;
|
||||
private FMOD.Sound sound = null;
|
||||
@ -533,7 +533,7 @@ namespace Unity_Studio
|
||||
string saveFile = versionPath + "\\" + uclass.Key + " " + uclass.Value.Text + ".txt";
|
||||
using (StreamWriter TXTwriter = new StreamWriter(saveFile))
|
||||
{
|
||||
TXTwriter.Write(uclass.Value.members);
|
||||
TXTwriter.Write(uclass.Value.membersstr);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -858,7 +858,7 @@ namespace Unity_Studio
|
||||
//group class structures by versionv
|
||||
foreach (var assetsFile in assetsfileList)
|
||||
{
|
||||
SortedDictionary<int, ClassStrStruct> curVer;
|
||||
SortedDictionary<int, ClassStruct> curVer;
|
||||
if (AllClassStructures.TryGetValue(assetsFile.m_Version, out curVer))
|
||||
{
|
||||
foreach (var uClass in assetsFile.ClassStructures)
|
||||
@ -1178,7 +1178,7 @@ namespace Unity_Studio
|
||||
{
|
||||
if (e.IsSelected)
|
||||
{
|
||||
classTextBox.Text = ((ClassStrStruct)classesListView.SelectedItems[0]).members;
|
||||
classTextBox.Text = ((ClassStruct)classesListView.SelectedItems[0]).membersstr;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user