mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-01-11 11:15:28 +00:00
Added support for empty or null typemaps.
This commit is contained in:
parent
a08edd47fc
commit
be52c2776b
|
@ -15,7 +15,7 @@ namespace Bind.CL
|
|||
if (String.IsNullOrEmpty(name))
|
||||
throw new ArgumentNullException("name");
|
||||
|
||||
glTypemap = "GL2/gl.tm";
|
||||
glTypemap = null;
|
||||
csTypemap = "csharp.tm";
|
||||
|
||||
enumSpec = name + "/signatures.xml";
|
||||
|
|
|
@ -314,6 +314,9 @@ namespace Bind.GL2
|
|||
Console.WriteLine("Reading opengl types.");
|
||||
Dictionary<string, string> GLTypes = new Dictionary<string, string>();
|
||||
|
||||
if (specFile == null)
|
||||
return GLTypes;
|
||||
|
||||
do
|
||||
{
|
||||
string line = specFile.ReadLine();
|
||||
|
|
|
@ -76,6 +76,9 @@ namespace Bind
|
|||
|
||||
internal static StreamReader OpenSpecFile(string folder, string file)
|
||||
{
|
||||
if (String.IsNullOrEmpty(folder) || String.IsNullOrEmpty(file))
|
||||
return null;
|
||||
|
||||
Console.WriteLine(folder);
|
||||
Console.WriteLine(file);
|
||||
string path = Path.Combine(folder, file);
|
||||
|
|
Loading…
Reference in a new issue