mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 14:27:45 +01:00
Make all versioning functions internal, move to separate class
This commit is contained in:
parent
a1409096fd
commit
20af5b40c7
20 changed files with 142 additions and 130 deletions
|
|
@ -37,7 +37,7 @@ internal static class BugBait
|
|||
Name = plugin.InternalName,
|
||||
Version = isTesting ? plugin.TestingAssemblyVersion?.ToString() : plugin.AssemblyVersion.ToString(),
|
||||
Platform = Util.GetHostPlatform().ToString(),
|
||||
DalamudHash = Util.GetScmVersion(),
|
||||
DalamudHash = Versioning.GetScmVersion(),
|
||||
};
|
||||
|
||||
if (includeException)
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ internal class DalamudReleases : IServiceType
|
|||
/// <returns>The version info for the current track.</returns>
|
||||
public async Task<DalamudVersionInfo?> GetVersionForCurrentTrack()
|
||||
{
|
||||
var currentTrack = Util.GetActiveTrack();
|
||||
var currentTrack = Versioning.GetActiveTrack();
|
||||
if (currentTrack.IsNullOrEmpty())
|
||||
return null;
|
||||
|
||||
|
|
|
|||
|
|
@ -69,11 +69,11 @@ public static class Troubleshooting
|
|||
LoadedPlugins = pluginManager?.InstalledPlugins?.Select(x => x.Manifest as LocalPluginManifest)?.OrderByDescending(x => x.InternalName).ToArray(),
|
||||
PluginStates = pluginManager?.InstalledPlugins?.Where(x => !x.IsDev).ToDictionary(x => x.Manifest.InternalName, x => x.IsBanned ? "Banned" : x.State.ToString()),
|
||||
EverStartedLoadingPlugins = pluginManager?.InstalledPlugins.Where(x => x.HasEverStartedLoad).Select(x => x.InternalName).ToList(),
|
||||
DalamudVersion = Util.GetScmVersion(),
|
||||
DalamudGitHash = Util.GetGitHash() ?? "Unknown",
|
||||
DalamudVersion = Versioning.GetScmVersion(),
|
||||
DalamudGitHash = Versioning.GetGitHash() ?? "Unknown",
|
||||
GameVersion = startInfo.GameVersion?.ToString() ?? "Unknown",
|
||||
Language = startInfo.Language.ToString(),
|
||||
BetaKey = Util.GetActiveTrack(),
|
||||
BetaKey = Versioning.GetActiveTrack(),
|
||||
DoPluginTest = configuration.DoPluginTest,
|
||||
LoadAllApiLevels = pluginManager?.LoadAllApiLevels == true,
|
||||
InterfaceLoaded = interfaceManager?.IsReady ?? false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue