Skip to content

Commit

Permalink
0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
KedamaOvO committed Oct 2, 2019
1 parent ae6a3ce commit 55a53cf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion IngameOverlayPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace IngameOverlay
[SyncPluginDependency("7216787b-507b-4eef-96fb-e993722acf2e", Version = "^1.4.3", Require = true)]
public class IngameOverlayPlugin : Plugin
{
public const string PLUGIN_VERSION = "0.2.4";
public const string PLUGIN_VERSION = "0.3.0";
private string _currentStatusString = "Idle";
private BreakTimeParser _breakTimeParser;

Expand Down
3 changes: 3 additions & 0 deletions Structs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public class GlobalConfig:IOverlayConfig
public void Write(BinaryWriter bw)
{
bw.Write(true);//WasChanged
bw.Write(new byte[3] { 0, 0, 0 });//Padding
int size = Encoding.UTF8.GetBytes(GlyphRanges, 0, GlyphRanges.Length, _glyphRangesBuffer,0);
_glyphRangesBuffer[size] = 0;
bw.Write(_glyphRangesBuffer, 0, 64);
Expand Down Expand Up @@ -107,6 +108,7 @@ public void Write(BinaryWriter bw)
bw.Write((int)FontSize);
bw.Write(FontScale);
bw.Write(Visibility);
bw.Write(new byte[3] { 0, 0, 0 });//Padding
}

private void WriteFloatArray(float[] arr, BinaryWriter bw)
Expand All @@ -126,6 +128,7 @@ public class OverlayConfigs:IOverlayConfig
public void Write(BinaryWriter bw)
{
bw.Write(_needUpdateFonts);//WasChanged
bw.Write(new byte[3] { 0, 0, 0 });//Padding
bw.Write(OverlayConfigItems.Count);
foreach (var item in OverlayConfigItems)
item.Write(bw);
Expand Down
1 change: 0 additions & 1 deletion packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Extended.Wpf.Toolkit" version="3.0" targetFramework="net461" />
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net461" />
</packages>

0 comments on commit 55a53cf

Please sign in to comment.