summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-04-22 18:13:45 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-04-22 18:13:45 -0400
commit13a3c8fbddb9dd47d30e1b9684d3ceb048086e91 (patch)
tree7d64032d5df906cbd585e1a6ecd34d0b889f52ea /src
parented47c2a0cebfbb68ca5f429ff77159180c7f03e8 (diff)
downloadSMAPI-13a3c8fbddb9dd47d30e1b9684d3ceb048086e91.tar.gz
SMAPI-13a3c8fbddb9dd47d30e1b9684d3ceb048086e91.tar.bz2
SMAPI-13a3c8fbddb9dd47d30e1b9684d3ceb048086e91.zip
add SMAPI version and bitness to console title earlier
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI/Constants.cs5
-rw-r--r--src/SMAPI/Program.cs4
2 files changed, 7 insertions, 2 deletions
diff --git a/src/SMAPI/Constants.cs b/src/SMAPI/Constants.cs
index 079c9251..b55104c0 100644
--- a/src/SMAPI/Constants.cs
+++ b/src/SMAPI/Constants.cs
@@ -59,6 +59,9 @@ namespace StardewModdingAPI
/// <summary>The <see cref="Context.ScreenId"/> value which should appear in the SMAPI log, if any.</summary>
internal static int? LogScreenId { get; set; }
+
+ /// <summary>SMAPI's current raw semantic version.</summary>
+ internal static string RawApiVersion = "3.9.5";
}
/// <summary>Contains SMAPI's constants and assumptions.</summary>
@@ -71,7 +74,7 @@ namespace StardewModdingAPI
** Public
****/
/// <summary>SMAPI's current semantic version.</summary>
- public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion("3.9.5");
+ public static ISemanticVersion ApiVersion { get; } = new Toolkit.SemanticVersion(EarlyConstants.RawApiVersion);
/// <summary>The minimum supported version of Stardew Valley.</summary>
public static ISemanticVersion MinimumGameVersion { get; } = new GameVersion("1.5.4");
diff --git a/src/SMAPI/Program.cs b/src/SMAPI/Program.cs
index 986d2780..e830f799 100644
--- a/src/SMAPI/Program.cs
+++ b/src/SMAPI/Program.cs
@@ -24,6 +24,8 @@ namespace StardewModdingAPI
/// <param name="args">The command-line arguments.</param>
public static void Main(string[] args)
{
+ Console.Title = $"SMAPI {EarlyConstants.RawApiVersion}{(EarlyConstants.IsWindows64BitHack ? " 64-bit" : "")} - {Console.Title}";
+
try
{
AppDomain.CurrentDomain.AssemblyResolve += Program.CurrentDomain_AssemblyResolve;
@@ -159,7 +161,7 @@ namespace StardewModdingAPI
Console.ResetColor();
Console.WriteLine();
}
-
+
Program.PressAnyKeyToExit(showMessage: true);
}