mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-22 20:05:29 +00:00
Merge pull request #750 from leezer3/Patch3
Fix: Use invariant culture when parsing version in Generator.Bind
This commit is contained in:
commit
c455638dd1
|
@ -25,6 +25,7 @@
|
|||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Xml.XPath;
|
||||
using Bind.Structures;
|
||||
|
@ -269,7 +270,7 @@ namespace Bind
|
|||
// our current apiversion. Extensions do not have a version,
|
||||
// so we add them anyway (which is desirable).
|
||||
if (!String.IsNullOrEmpty(version) && !String.IsNullOrEmpty(apiversion) &&
|
||||
Decimal.Parse(version) > Decimal.Parse(apiversion))
|
||||
Decimal.Parse(version, CultureInfo.InvariantCulture) > Decimal.Parse(apiversion, CultureInfo.InvariantCulture))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue