Browse Source

Fix PluginManager version check by discarding patch rel from version string

Versions like 1.1.0p1 break `SemVer.Version`. This commit fixes that by discarding the patch version, leaving e.g. 1.1.0.
pull/15/head
Robin B 5 years ago
committed by GitHub
parent
commit
16ea1c7e00
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      IPA.Loader/Loader/PluginManager.cs

+ 1
- 1
IPA.Loader/Loader/PluginManager.cs View File

@ -294,7 +294,7 @@ namespace IPA.Loader
string pluginDir = BeatSaber.PluginsPath;
var gameVer = BeatSaber.GameVersion;
var lastVerS = SelfConfig.SelfConfigRef.Value.LastGameVersion;
var lastVer = lastVerS != null ? new SemVer.Version(lastVerS) : null;
var lastVer = lastVerS != null ? new SemVer.Version(lastVerS.Split('p').First()) : null;
if (lastVer != null && gameVer != lastVer)
{


Loading…
Cancel
Save