Skip to content

Commit 700c361

Browse files
Move file utils to their own assemblly
This code gets to graduate to its own assembly, it didn't belong in the Analyzer anymore. This makes it cleaner to use from TextDumper and upcoming UnityFileSystem usage
1 parent 0ac49b4 commit 700c361

18 files changed

Lines changed: 127 additions & 14 deletions

Analyzer.Tests/Analyzer.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828

2929
<ItemGroup>
3030
<ProjectReference Include="..\Analyzer\Analyzer.csproj" />
31+
<ProjectReference Include="..\UnityBinaryFormat\UnityBinaryFormat.csproj" />
3132
<ProjectReference Include="..\TestCommon\TestCommon.csproj" />
3233
<ProjectReference Include="..\UnityFileSystem\UnityFileSystem.csproj" />
3334
</ItemGroup>

Analyzer.Tests/FileDetectionTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.IO;
33
using System.Linq;
44
using NUnit.Framework;
5-
using UnityDataTools.Analyzer.Util;
5+
using UnityDataTools.BinaryFormat;
66
using UnityDataTools.FileSystem;
77

88
namespace UnityDataTools.Analyzer.Tests;

Analyzer/Analyzer.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
</ItemGroup>
2424

2525
<ItemGroup>
26+
<ProjectReference Include="..\UnityBinaryFormat\UnityBinaryFormat.csproj" />
2627
<ProjectReference Include="..\UnityFileSystem\UnityFileSystem.csproj" />
2728
</ItemGroup>
2829

Analyzer/SQLite/Parsers/SerializedFileParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Microsoft.Data.Sqlite;
55
using UnityDataTools.Analyzer.SQLite.Handlers;
66
using UnityDataTools.Analyzer.SQLite.Writers;
7-
using UnityDataTools.Analyzer.Util;
7+
using UnityDataTools.BinaryFormat;
88
using UnityDataTools.FileSystem;
99

1010
namespace UnityDataTools.Analyzer.SQLite.Parsers

Analyzer/SerializedObjects/BuildReport.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.Collections.Generic;
33
using System.IO;
4-
using UnityDataTools.Analyzer.Util;
4+
using UnityDataTools.BinaryFormat;
55
using UnityDataTools.FileSystem.TypeTreeReaders;
66

77
namespace UnityDataTools.Analyzer.SerializedObjects;

Analyzer/SerializedObjects/PackedAssets.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
using System.Collections.Generic;
2-
using UnityDataTools.Analyzer.Util;
2+
using UnityDataTools.BinaryFormat;
33
using UnityDataTools.FileSystem.TypeTreeReaders;
44

55
namespace UnityDataTools.Analyzer.SerializedObjects;

TextDumper/TextDumper.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</PropertyGroup>
1818

1919
<ItemGroup>
20-
<ProjectReference Include="..\Analyzer\Analyzer.csproj" />
20+
<ProjectReference Include="..\UnityBinaryFormat\UnityBinaryFormat.csproj" />
2121
<ProjectReference Include="..\UnityFileSystem\UnityFileSystem.csproj" />
2222
</ItemGroup>
2323

TextDumper/TextDumperTool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.IO;
33
using System.Text;
4-
using UnityDataTools.Analyzer.Util;
4+
using UnityDataTools.BinaryFormat;
55
using UnityDataTools.FileSystem;
66

77
namespace UnityDataTools.TextDumper;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System;
22
using System.IO;
33

4-
namespace UnityDataTools.Analyzer.Util;
4+
namespace UnityDataTools.BinaryFormat;
55

66
/// <summary>
77
/// Utility for detecting Unity Archive (AssetBundle) files by reading their signature.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.IO;
33
using System.Text;
44

5-
namespace UnityDataTools.Analyzer.Util;
5+
namespace UnityDataTools.BinaryFormat;
66

77
/// <summary>
88
/// A 128-bit hash stored as four 32-bit unsigned integers, matching Unity's Hash128 binary layout.

0 commit comments

Comments
 (0)