mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
refactor: move asm version into Util
This commit is contained in:
parent
ae036ca1fe
commit
ebce8ab05f
2 changed files with 5 additions and 6 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue