Added new views, improved dump format, fixed PPtrReader bug with arrays · unitycoder/UnityDataTools@b90ad52 · GitHub
Skip to content

Commit b90ad52

Browse files
committed
Added new views, improved dump format, fixed PPtrReader bug with arrays
1 parent 5994b71 commit b90ad52

15 files changed

Lines changed: 549275 additions & 549232 deletions

Analyzer/Resources/Init.sql

Lines changed: 17 additions & 1 deletion

Analyzer/SQLite/SQLiteWriter.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,11 @@ private void CreateSQLiteCommands()
105105
m_AddSerializedFileCommand.Parameters.Add("@name", DbType.String);
106106

107107
m_AddReferenceCommand = m_Database.CreateCommand();
108-
m_AddReferenceCommand.CommandText = "INSERT INTO refs (object, referenced_object, property_path) VALUES (@object, @referenced_object, @property_path)";
108+
m_AddReferenceCommand.CommandText = "INSERT INTO refs (object, referenced_object, property_path, property_type) VALUES (@object, @referenced_object, @property_path, @property_type)";
109109
m_AddReferenceCommand.Parameters.Add("@object", DbType.Int64);
110110
m_AddReferenceCommand.Parameters.Add("@referenced_object", DbType.Int64);
111111
m_AddReferenceCommand.Parameters.Add("@property_path", DbType.String);
112+
m_AddReferenceCommand.Parameters.Add("@property_type", DbType.String);
112113

113114
m_AddObjectCommand = m_Database.CreateCommand();
114115
m_AddObjectCommand.CommandText = "INSERT INTO objects (id, object_id, serialized_file, type, name, game_object, size) VALUES (@id, @object_id, @serialized_file, @type, @name, @game_object, @size)";
@@ -243,12 +244,13 @@ public void WriteSerializedFile(string filename, string fullPath)
243244
}
244245
}
245246

246-
public void AddReference(long objectId, int fileId, long pathId, string propertyPath)
247+
public void AddReference(long objectId, int fileId, long pathId, string propertyPath, string propertyType)
247248
{
248249
var referencedObjectId = m_ObjectIdProvider.GetId((m_LocalToDbFileId[fileId], pathId));
249250
m_AddReferenceCommand.Parameters["@object"].Value = objectId;
250251
m_AddReferenceCommand.Parameters["@referenced_object"].Value = referencedObjectId;
251252
m_AddReferenceCommand.Parameters["@property_path"].Value = propertyPath;
253+
m_AddReferenceCommand.Parameters["@property_type"].Value = propertyType;
252254
m_AddReferenceCommand.ExecuteNonQuery();
253255
}
254256

TextDumper/TextDumperTool.cs

Lines changed: 17 additions & 9 deletions

0 commit comments

Comments
 (0)