Skip to content

Commit 68c48f3

Browse files
committed
[Minor] adds utmt version in the first log
1 parent ab770d6 commit 68c48f3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Main.xaml.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using System.Runtime.InteropServices;
1414
using ModShardLauncher.Mods;
1515
using System.Diagnostics;
16+
using UndertaleModLib.Models;
1617

1718
namespace ModShardLauncher
1819
{
@@ -36,6 +37,7 @@ public partial class Main : Window
3637
public const int SW_SHOW = 5;
3738
public static IntPtr handle;
3839
public string mslVersion;
40+
public string utmtlibVersion;
3941
public Main()
4042
{
4143
handle = GetConsoleWindow();
@@ -69,13 +71,14 @@ public Main()
6971
ProcessModule mainProcess = Msl.ThrowIfNull(Process.GetCurrentProcess().MainModule);
7072
string mainProcessName = Msl.ThrowIfNull(mainProcess.FileName);
7173
mslVersion = "v" + FileVersionInfo.GetVersionInfo(mainProcessName).FileVersion;
74+
utmtlibVersion = "v" + FileVersionInfo.GetVersionInfo(typeof(UndertaleCode).Assembly.Location).FileVersion;
7275
}
7376
catch(FileNotFoundException ex)
7477
{
7578
Log.Error(ex, "Cannot find the dll of ModShardLauncher");
7679
throw;
7780
}
78-
Log.Information("Launching msl {{{0}}}", mslVersion);
81+
Log.Information("Launching msl {{{0}}} using UTMT {{{1}}}", mslVersion, utmtlibVersion);
7982

8083
try
8184
{

0 commit comments

Comments
 (0)