From 60d2b1b6b22701477ad1d362c2a5cf56b8d6f565 Mon Sep 17 00:00:00 2001
From: BlazingTwist <39350649+BlazingTwist@users.noreply.github.com>
Date: Sun, 12 Mar 2023 15:12:34 +0100
Subject: [PATCH] make BepInEx plugin for automatic version checking
---
BTHarmonyUtils.sln.DotSettings | 2 ++
BTHarmonyUtils.sln.DotSettings.user | 1 +
BTHarmonyUtils/Properties/AssemblyInfo.cs | 4 +--
BTHarmonyUtils/src/BTHarmonyUtilsPlugin.cs | 30 ++++++++++++++++++++++
4 files changed, 35 insertions(+), 2 deletions(-)
create mode 100644 BTHarmonyUtils.sln.DotSettings
create mode 100644 BTHarmonyUtils/src/BTHarmonyUtilsPlugin.cs
diff --git a/BTHarmonyUtils.sln.DotSettings b/BTHarmonyUtils.sln.DotSettings
new file mode 100644
index 0000000..38b4153
--- /dev/null
+++ b/BTHarmonyUtils.sln.DotSettings
@@ -0,0 +1,2 @@
+
+ True
\ No newline at end of file
diff --git a/BTHarmonyUtils.sln.DotSettings.user b/BTHarmonyUtils.sln.DotSettings.user
index 3928da6..3323705 100644
--- a/BTHarmonyUtils.sln.DotSettings.user
+++ b/BTHarmonyUtils.sln.DotSettings.user
@@ -3,6 +3,7 @@
True
True
True
+ True
True
True
True
\ No newline at end of file
diff --git a/BTHarmonyUtils/Properties/AssemblyInfo.cs b/BTHarmonyUtils/Properties/AssemblyInfo.cs
index 2dad647..0af0175 100644
--- a/BTHarmonyUtils/Properties/AssemblyInfo.cs
+++ b/BTHarmonyUtils/Properties/AssemblyInfo.cs
@@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.1.0.0")]
-[assembly: AssemblyFileVersion("0.1.0.0")]
+[assembly: AssemblyVersion("0.0.0.0")]
+[assembly: AssemblyFileVersion("0.0.0.0")]
diff --git a/BTHarmonyUtils/src/BTHarmonyUtilsPlugin.cs b/BTHarmonyUtils/src/BTHarmonyUtilsPlugin.cs
new file mode 100644
index 0000000..c31005e
--- /dev/null
+++ b/BTHarmonyUtils/src/BTHarmonyUtilsPlugin.cs
@@ -0,0 +1,30 @@
+using BepInEx;
+using JetBrains.Annotations;
+
+namespace BTHarmonyUtils {
+
+ ///
+ /// BTHarmonyUtils plugin
+ ///
+ [PublicAPI]
+ [BepInPlugin(pluginGuid, pluginName, pluginVersion)]
+ public class BTHarmonyUtilsPlugin : BaseUnityPlugin {
+
+ ///
+ /// BTHU plugin guid
+ ///
+ public const string pluginGuid = "blazingtwist.harmonyutils";
+
+ ///
+ /// BTHU plugin display-name
+ ///
+ public const string pluginName = "BT Harmony Utils";
+
+ ///
+ /// BTHU plugin version
+ ///
+ public const string pluginVersion = "0.2.0";
+
+ }
+
+}