• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Automap (client) [VS plugin mod]


Commit MetaInfo

Revisão8228eb181b05e3955e0f15bf15043bce3de3f8c1 (tree)
Hora2020-01-18 06:29:37
Autormelchior <melchior@user...>
Commitermelchior

Mensagem de Log

W.I.P. #7 fix for PNG Chunk factory, GUI stuff

Mudança Sumário

Diff

--- a/Automap/Helpers.cs
+++ b/Automap/Helpers.cs
@@ -3,6 +3,8 @@ using System.Collections.Generic;
33 using System.Drawing;
44 using System.Linq;
55
6+using Hjg.Pngcs.Chunks;
7+
68 using Vintagestory.API.Client;
79 using Vintagestory.API.Common;
810 using Vintagestory.API.MathTools;
@@ -11,6 +13,11 @@ namespace Automap
1113 {
1214 public static class Helpers
1315 {
16+ static Helpers( )
17+ {
18+ //Called once - thus it can only be in a static constructor.
19+ PngChunk.FactoryRegister(PngMetadataChunk.ID, typeof(PngMetadataChunk));
20+ }
1421
1522 /// <summary>
1623 /// Hue, Saturation Value colorspace
--- a/Automap/Subsystems/AutomapSystem.cs
+++ b/Automap/Subsystems/AutomapSystem.cs
@@ -457,7 +457,7 @@ namespace Automap
457457 Logger.VerboseDebug("{0} Existing world chunk shards", files.Length);
458458 #endif
459459
460- PngChunk.FactoryRegister(PngMetadataChunk.ID, typeof(PngMetadataChunk));
460+
461461
462462 foreach (var shardFile in files) {
463463 var result = chunkShardRegex.Match(shardFile.Name);