Skip to content

Commit

Permalink
Fixed issue regarding config loading combined with pre-release versio…
Browse files Browse the repository at this point in the history
…ns of the mod
  • Loading branch information
ErisApps committed Sep 11, 2021
1 parent 717c82c commit 4e3dfcd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion HitScoreVisualizer/Services/ConfigProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,9 @@ void LogWarning(string message)
return ConfigState.Broken;
}

if (configuration.Version > Plugin.Version)
// Both full version comparison and check on major, minor or patch version inequality in case the mod is versioned with a pre-release id
if (configuration.Version > Plugin.Version &&
(configuration.Version.Major != Plugin.Version.Major || configuration.Version.Minor != Plugin.Version.Minor || configuration.Version.Patch != Plugin.Version.Patch))
{
LogWarning($"Config {configName} is made for a newer version of HSV than is currently installed. Targets {configuration.Version} while only {Plugin.Version} is installed");
return ConfigState.NewerVersion;
Expand Down

0 comments on commit 4e3dfcd

Please sign in to comment.