refactor: move asm version into Util

This commit is contained in:
goat 2020-06-11 14:01:51 +02:00
parent ae036ca1fe
commit ebce8ab05f
2 changed files with 5 additions and 6 deletions

View file

@ -72,8 +72,6 @@ namespace Dalamud {
public bool IsReady { get; private set; }
private readonly string assemblyVersion = Assembly.GetAssembly(typeof(ChatHandlers)).GetName().Version.ToString();
public Dalamud(DalamudStartInfo info, LoggingLevelSwitch loggingLevelSwitch) {
this.StartInfo = info;
this.loggingLevelSwitch = loggingLevelSwitch;
@ -283,7 +281,7 @@ namespace Dalamud {
var a = Marshal.ReadByte(IntPtr.Zero);
}
ImGui.Separator();
ImGui.MenuItem(this.assemblyVersion, false);
ImGui.MenuItem(Util.AssemblyVersion, false);
ImGui.MenuItem(this.StartInfo.GameVersion, false);
ImGui.EndMenu();

View file

@ -1,9 +1,8 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Dalamud.Game;
using Serilog;
namespace Dalamud {
@ -66,5 +65,7 @@ namespace Dalamud {
return sb.ToString().TrimEnd(Environment.NewLine.ToCharArray());
}
public static string AssemblyVersion { get; } = Assembly.GetAssembly(typeof(ChatHandlers)).GetName().Version.ToString();
}
}