Automap (client) [VS plugin mod]
Revisão | 8228eb181b05e3955e0f15bf15043bce3de3f8c1 (tree) |
---|---|
Hora | 2020-01-18 06:29:37 |
Autor | melchior <melchior@user...> |
Commiter | melchior |
W.I.P. #7 fix for PNG Chunk factory, GUI stuff
@@ -3,6 +3,8 @@ using System.Collections.Generic; | ||
3 | 3 | using System.Drawing; |
4 | 4 | using System.Linq; |
5 | 5 | |
6 | +using Hjg.Pngcs.Chunks; | |
7 | + | |
6 | 8 | using Vintagestory.API.Client; |
7 | 9 | using Vintagestory.API.Common; |
8 | 10 | using Vintagestory.API.MathTools; |
@@ -11,6 +13,11 @@ namespace Automap | ||
11 | 13 | { |
12 | 14 | public static class Helpers |
13 | 15 | { |
16 | + static Helpers( ) | |
17 | + { | |
18 | + //Called once - thus it can only be in a static constructor. | |
19 | + PngChunk.FactoryRegister(PngMetadataChunk.ID, typeof(PngMetadataChunk)); | |
20 | + } | |
14 | 21 | |
15 | 22 | /// <summary> |
16 | 23 | /// Hue, Saturation Value colorspace |
@@ -457,7 +457,7 @@ namespace Automap | ||
457 | 457 | Logger.VerboseDebug("{0} Existing world chunk shards", files.Length); |
458 | 458 | #endif |
459 | 459 | |
460 | - PngChunk.FactoryRegister(PngMetadataChunk.ID, typeof(PngMetadataChunk)); | |
460 | + | |
461 | 461 | |
462 | 462 | foreach (var shardFile in files) { |
463 | 463 | var result = chunkShardRegex.Match(shardFile.Name); |