From 4b0633c1f69993fbb763895e2b5dc8ee00535c12 Mon Sep 17 00:00:00 2001 From: Michael21107 <121039033+Michael21107@users.noreply.github.com> Date: Tue, 28 Oct 2025 11:45:35 +0100 Subject: [PATCH 1/2] refactor: remove hardcoded version string --- EntryPoint.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/EntryPoint.cs b/EntryPoint.cs index d47633f..36b3940 100644 --- a/EntryPoint.cs +++ b/EntryPoint.cs @@ -10,7 +10,8 @@ namespace MTFO { public class EntryPoint : Plugin { - private const string Version = "v3.0.1.0"; + private static readonly string Version = "v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; + private static MtfoSettings Settings { get; set; } public override void Initialize() @@ -158,4 +159,4 @@ public static void ClearAllTrackedVehicles() PluginState.IsStopSignIntersection = false; } } -} \ No newline at end of file +} From 7f021f365a4083f01ddedbcd9a8b4b35f08f5fb5 Mon Sep 17 00:00:00 2001 From: Michael21107 <121039033+Michael21107@users.noreply.github.com> Date: Fri, 28 Nov 2025 17:45:01 +0100 Subject: [PATCH 2/2] style: simplify namespace usage --- EntryPoint.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/EntryPoint.cs b/EntryPoint.cs index 36b3940..f774e1d 100644 --- a/EntryPoint.cs +++ b/EntryPoint.cs @@ -1,5 +1,6 @@ using System.Collections.Generic; using System.Linq; +using System.Reflection; using INIUtility; using LSPD_First_Response.Mod.API; using MTFO.Handlers; @@ -10,7 +11,7 @@ namespace MTFO { public class EntryPoint : Plugin { - private static readonly string Version = "v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version; + private static readonly string Version = "v" + Assembly.GetExecutingAssembly().GetName().Version; private static MtfoSettings Settings { get; set; }