|
1 | | -using UnityAsset.NET.Enums; |
| 1 | +using System.Text; |
| 2 | +using UnityAsset.NET.Enums; |
2 | 3 | using UnityAsset.NET.IO; |
3 | 4 |
|
4 | 5 | namespace UnityAsset.NET.BundleFile; |
@@ -47,15 +48,16 @@ public void Write(AssetWriter writer) |
47 | 48 |
|
48 | 49 | public override string ToString() |
49 | 50 | { |
50 | | - return |
51 | | - $"signature: {signature} | " + |
52 | | - $"version: {version} | " + |
53 | | - $"unityVersion: {unityVersion} | " + |
54 | | - $"unityRevision: {unityRevision} | " + |
55 | | - $"size: 0x{size:X8} | " + |
56 | | - $"compressedBlocksInfoSize: 0x{compressedBlocksInfoSize:X8} | " + |
57 | | - $"uncompressedBlocksInfoSize: 0x{uncompressedBlocksInfoSize:X8} | " + |
58 | | - $"flags: 0x{(int)flags:X8}"; |
| 51 | + StringBuilder sb = new StringBuilder(); |
| 52 | + sb.AppendFormat("signature: {0} | ", signature); |
| 53 | + sb.AppendFormat("version: {0} | ", version); |
| 54 | + sb.AppendFormat("unityVersion: {0} | ", unityVersion); |
| 55 | + sb.AppendFormat("unityRevision: {0} | ", unityRevision); |
| 56 | + sb.AppendFormat("size: 0x{0:X8} | ", size); |
| 57 | + sb.AppendFormat("compressedBlocksInfoSize: 0x{0:X8} | ", compressedBlocksInfoSize); |
| 58 | + sb.AppendFormat("uncompressedBlocksInfoSize: 0x{0:X8} | ", uncompressedBlocksInfoSize); |
| 59 | + sb.AppendFormat("flags: 0x{0:X8}", (int)flags); |
| 60 | + return sb.ToString(); |
59 | 61 | } |
60 | 62 |
|
61 | 63 | public long CalculateSize() |
|
0 commit comments