Skip to content

Commit 6680609

Browse files
committed
Fix way of accessing relative path, to work in both Linux and Windows
1 parent 4cd918f commit 6680609

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

OpenGLGen/OpenGLGen/Program.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ class Program
99
{
1010
static void Main(string[] args)
1111
{
12-
string glFile = "..\\..\\..\\..\\..\\KhronosRegistry\\gl.xml";
12+
string glFile = Path.Combine("..", "..", "..", "..", "..", "KhronosRegistry", "gl.xml");
1313

1414
// Generate OpenGL bindings
15-
DirectoryInfo workingDirectory = new DirectoryInfo("..\\..\\..\\..\\Evergine.Bindings.OpenGL");
15+
DirectoryInfo workingDirectory = new DirectoryInfo(Path.Combine("..", "..", "..", "..", "Evergine.Bindings.OpenGL"));
1616
var api = new[] { "gl" };
1717
string namespaceText = "namespace Evergine.Bindings.OpenGL";
1818
string nativeClassText = "GL";
@@ -311,7 +311,7 @@ private static string ConvertGLType(string type)
311311
return "byte";
312312
case "GLbyte":
313313
return "sbyte";
314-
case "GLhalfNV":
314+
case "GLhalfNV":
315315
case "GLushort":
316316
return "ushort";
317317
case "GLshort":
@@ -334,7 +334,7 @@ private static string ConvertGLType(string type)
334334
case "GLDEBUGPROCARB":
335335
return "IntPtr";
336336
}
337-
337+
338338
if (type.Contains("*"))
339339
{
340340
return "IntPtr";

0 commit comments

Comments
 (0)