From 332576ad136c1c5701c72996cbb9bbf8d397f37f Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Wed, 10 Feb 2021 22:49:13 -0500 Subject: Added version number --- Erable/Program.cs | 5 ++++- Sirop.Backend/Version.cs | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Sirop.Backend/Version.cs diff --git a/Erable/Program.cs b/Erable/Program.cs index f4a68e3..827f1bf 100644 --- a/Erable/Program.cs +++ b/Erable/Program.cs @@ -30,7 +30,8 @@ namespace Erable // yet and stuff might break. public static void Main(string[] args) { - Console.WriteLine("Erable: Audio Player by Alee Productions"); + Console.WriteLine("Erable {0}: Audio Player by Alee Productions", Sirop.Backend.Version.ErableVersion); + Console.WriteLine("Powered by Sirop Backend {0} ", Sirop.Backend.Version.SiropVersion); AppDomain.CurrentDomain.UnhandledException += ErrorHandler; @@ -46,6 +47,8 @@ namespace Erable static void ErrorHandler(object sender, UnhandledExceptionEventArgs e) { Console.WriteLine("Oh no! An error has occurred!"); + Console.WriteLine("Erable Version: " + Sirop.Backend.Version.ErableVersion); + Console.WriteLine("Sirop Version: " + Sirop.Backend.Version.SiropVersion); Console.WriteLine("OS Version: " + Environment.OSVersion); Console.WriteLine(".NET Version: " + Environment.Version); Console.WriteLine("Report this to the developers..."); diff --git a/Sirop.Backend/Version.cs b/Sirop.Backend/Version.cs new file mode 100644 index 0000000..15ed016 --- /dev/null +++ b/Sirop.Backend/Version.cs @@ -0,0 +1,8 @@ +namespace Erable +{ + public class Version + { + public string ErableVersion = "0.1"; + public string SiropVersion = "0.1"; + } +} \ No newline at end of file -- cgit v1.2.3