mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 19:35:29 +00:00
Fixed invalid version string on git
Git commit hashcodes are not compatible with the 16bit integer values found in .Net version numbers. Use the git commit count as a version number instead.
This commit is contained in:
parent
7460452b26
commit
31f2df094b
|
@ -124,7 +124,7 @@ namespace Build.UpdateVersion
|
|||
{
|
||||
try
|
||||
{
|
||||
string output = RunProcess("git", "log -1", RootDirectory);
|
||||
string output = RunProcess("git", "rev-list HEAD --count", RootDirectory);
|
||||
|
||||
const string RevisionText = "commit ";
|
||||
int index = output.IndexOf(RevisionText);
|
||||
|
|
10
Source/OpenTK/Platform/SDL2/Sdl2.cs
Normal file
10
Source/OpenTK/Platform/SDL2/Sdl2.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
using System;
|
||||
|
||||
namespace OpenTK.Platform.SDL2
|
||||
{
|
||||
partial class SDL
|
||||
{
|
||||
public readonly static object Sync = new object();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in a new issue