Skip to content

Commit 0501f09

Browse files
[Tools] Fix issues with MessagePack and Packer;
1 parent 6df88cc commit 0501f09

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

Tools/Baker/Baker+Texture.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,14 +313,16 @@ bool ValidRegion(int x, int y)
313313

314314
if (metadata.trimDuplicates)
315315
{
316-
Console.WriteLine($"\t\tRemoving duplicates in {spriteTextures.Count} sprites");
316+
//Console.WriteLine($"\t\tRemoving duplicates in {spriteTextures.Count} sprites");
317317

318318
for (var j = 0; j < spriteTextures.Count; j++)
319319
{
320320
var first = spriteTextures[j];
321321

322+
/*
322323
Console.WriteLine($"Validating {j + 1}/{spriteTextures.Count} " +
323324
$"({first.location.left}, {first.location.top}, {first.location.Width}, {first.location.Height})");
325+
*/
324326

325327
var stride = first.textureData.width * 4;
326328

@@ -337,8 +339,10 @@ bool ValidRegion(int x, int y)
337339
//Remove duplicates
338340
if (first.textureData.data.SequenceEqual(second.textureData.data))
339341
{
342+
/*
340343
Console.WriteLine($"\t\tRemoved 1:1 duplicate at index {k} " +
341344
$"({second.location.left}, {second.location.top}, {second.location.Width}, {second.location.Height})");
345+
*/
342346

343347
first.duplicates.Add(new DuplicateSpriteInfo()
344348
{
@@ -376,8 +380,10 @@ bool ValidRegion(int x, int y)
376380

377381
if (valid)
378382
{
383+
/*
379384
Console.WriteLine($"\t\tRemoved Flipped Y duplicate at index {k} " +
380385
$"({second.location.left}, {second.location.top}, {second.location.Width}, {second.location.Height})");
386+
*/
381387

382388
first.duplicates.Add(new DuplicateSpriteInfo()
383389
{
@@ -421,8 +427,10 @@ bool ValidRegion(int x, int y)
421427

422428
if (valid)
423429
{
430+
/*
424431
Console.WriteLine($"\t\tRemoved Flipped X duplicate at index {k} " +
425432
$"({second.location.left}, {second.location.top}, {second.location.Width}, {second.location.Height})");
433+
*/
426434

427435
first.duplicates.Add(new DuplicateSpriteInfo()
428436
{

Tools/Baker/Baker.csproj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@
4545
</ItemGroup>
4646
<ItemGroup>
4747
<PackageReference Include="StirlingLabs.Assimp.Net" Version="23.4.1" />
48+
<PackageReference Update="StirlingLabs.assimp.native.win-x64" Version="5.2.5.4" />
49+
<PackageReference Include="MessagePack" Version="3.0.308" />
4850
</ItemGroup>
4951
<ItemGroup>
5052
<Compile Include="Audio\AudioUtils.cs" />
@@ -69,10 +71,6 @@
6971
<Compile Include="UnprocessedShader.cs" />
7072
<Compile Include="WorkScheduler.cs" />
7173
</ItemGroup>
72-
<ItemGroup>
73-
<PackageReference Update="StirlingLabs.assimp.native.win-x64" Version="5.2.5.4" />
74-
<PackageReference Include="MessagePack" Version="3.0.308" />
75-
</ItemGroup>
7674
<PropertyGroup>
7775
<PostBuildEvent>
7876
$(SolutionDir)..\Dependencies\build\dotnet\bin\Release\net9.0\CrossCopy $(SolutionDir)Baker\bin\$(Configuration)\net9.0\*.exe $(SolutionDir)bin\

Tools/Packer/Packer.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525
<WarningLevel>4</WarningLevel>
2626
</PropertyGroup>
2727
<ItemGroup>
28-
<Reference Include="MessagePack">
29-
<HintPath>..\..\Dependencies\build\dotnet\bin\Release\net9.0\MessagePack.dll</HintPath>
30-
</Reference>
3128
<Reference Include="Newtonsoft.Json">
3229
<HintPath>..\..\Dependencies\JsonNet\Newtonsoft.Json.dll</HintPath>
3330
</Reference>
@@ -49,6 +46,9 @@
4946
<Compile Include="PackerUtils.cs" />
5047
<Compile Include="Packer.cs" />
5148
</ItemGroup>
49+
<ItemGroup>
50+
<PackageReference Include="MessagePack" Version="3.0.308" />
51+
</ItemGroup>
5252
<PropertyGroup>
5353
<PostBuildEvent>
5454
$(SolutionDir)..\Dependencies\build\dotnet\bin\Release\net9.0\CrossCopy $(SolutionDir)Packer\bin\$(Configuration)\net9.0\*.exe $(SolutionDir)bin\

0 commit comments

Comments
 (0)