Skip to content

Commit 472e950

Browse files
authored
Don't try to parse the wine version (#555)
1 parent 9caf61d commit 472e950

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BepInEx.Preloader.Core/PlatformUtils.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ internal static class PlatformUtils
1010
{
1111
public static readonly bool ProcessIs64Bit = IntPtr.Size >= 8;
1212
public static Version WindowsVersion { get; set; }
13-
public static Version WineVersion { get; set; }
13+
public static string WineVersion { get; set; }
1414

1515
public static string LinuxArchitecture { get; set; }
1616
public static string LinuxKernelVersion { get; set; }
@@ -81,7 +81,7 @@ public static void SetPlatform()
8181
{
8282
current |= Platform.Wine;
8383
var getVersion = wineGetVersion.AsDelegate<GetWineVersionDelegate>();
84-
WineVersion = new Version(getVersion());
84+
WineVersion = getVersion();
8585
}
8686
}
8787
}

0 commit comments

Comments
 (0)