Use new version format in a few other places

This commit is contained in:
Kaz Wolfe 2024-07-18 21:00:41 -07:00
parent 2b96f2187c
commit 2bdd0dbe7b
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4
5 changed files with 5 additions and 6 deletions

View file

@ -329,7 +329,7 @@ internal class DalamudCommands : IServiceType
chatGui.Print(new SeStringBuilder() chatGui.Print(new SeStringBuilder()
.AddItalics("Dalamud:") .AddItalics("Dalamud:")
.AddText($" D{Util.AssemblyVersion}({Util.GetScmVersion()}") .AddText($" {Util.GetScmVersion()}")
.Build()); .Build());
chatGui.Print(new SeStringBuilder() chatGui.Print(new SeStringBuilder()

View file

@ -818,8 +818,7 @@ internal class DalamudInterface : IInternalDisposableService
{ {
this.OpenBranchSwitcher(); this.OpenBranchSwitcher();
} }
ImGui.MenuItem(Util.AssemblyVersion, false);
ImGui.MenuItem(this.dalamud.StartInfo.GameVersion?.ToString() ?? "Unknown version", false); ImGui.MenuItem(this.dalamud.StartInfo.GameVersion?.ToString() ?? "Unknown version", false);
ImGui.MenuItem($"D: {Util.GetScmVersion()} CS: {Util.GetGitHashClientStructs()}[{FFXIVClientStructs.ThisAssembly.Git.Commits}]", false); ImGui.MenuItem($"D: {Util.GetScmVersion()} CS: {Util.GetGitHashClientStructs()}[{FFXIVClientStructs.ThisAssembly.Git.Commits}]", false);
ImGui.MenuItem($"CLR: {Environment.Version}", false); ImGui.MenuItem($"CLR: {Environment.Version}", false);

View file

@ -360,7 +360,7 @@ internal sealed class ChangelogWindow : Window, IDisposable
{ {
case State.WindowFadeIn: case State.WindowFadeIn:
case State.ExplainerIntro: case State.ExplainerIntro:
ImGui.TextWrapped($"Welcome to Dalamud v{Util.AssemblyVersion}!"); ImGui.TextWrapped($"Welcome to Dalamud v{Util.GetScmVersion()}!");
ImGuiHelpers.ScaledDummy(5); ImGuiHelpers.ScaledDummy(5);
ImGui.TextWrapped(ChangeLog); ImGui.TextWrapped(ChangeLog);
ImGuiHelpers.ScaledDummy(5); ImGuiHelpers.ScaledDummy(5);

View file

@ -36,7 +36,7 @@ internal class HappyHttpClient : IInternalDisposableService
{ {
UserAgent = UserAgent =
{ {
new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion), new ProductInfoHeaderValue("Dalamud", Util.GetScmVersion()),
}, },
}, },
}; };

View file

@ -59,7 +59,7 @@ internal class PluginRepository
}, },
UserAgent = UserAgent =
{ {
new ProductInfoHeaderValue("Dalamud", Util.AssemblyVersion), new ProductInfoHeaderValue("Dalamud", Util.GetScmVersion()),
}, },
}, },
}; };