mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-06-19 23:17:54 +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))
|
if (String.IsNullOrEmpty(name))
|
||||||
throw new ArgumentNullException("name");
|
throw new ArgumentNullException("name");
|
||||||
|
|
||||||
glTypemap = "GL2/gl.tm";
|
glTypemap = null;
|
||||||
csTypemap = "csharp.tm";
|
csTypemap = "csharp.tm";
|
||||||
|
|
||||||
enumSpec = name + "/signatures.xml";
|
enumSpec = name + "/signatures.xml";
|
||||||
|
|
|
@ -314,6 +314,9 @@ namespace Bind.GL2
|
||||||
Console.WriteLine("Reading opengl types.");
|
Console.WriteLine("Reading opengl types.");
|
||||||
Dictionary<string, string> GLTypes = new Dictionary<string, string>();
|
Dictionary<string, string> GLTypes = new Dictionary<string, string>();
|
||||||
|
|
||||||
|
if (specFile == null)
|
||||||
|
return GLTypes;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
string line = specFile.ReadLine();
|
string line = specFile.ReadLine();
|
||||||
|
|
|
@ -76,6 +76,9 @@ namespace Bind
|
||||||
|
|
||||||
internal static StreamReader OpenSpecFile(string folder, string file)
|
internal static StreamReader OpenSpecFile(string folder, string file)
|
||||||
{
|
{
|
||||||
|
if (String.IsNullOrEmpty(folder) || String.IsNullOrEmpty(file))
|
||||||
|
return null;
|
||||||
|
|
||||||
Console.WriteLine(folder);
|
Console.WriteLine(folder);
|
||||||
Console.WriteLine(file);
|
Console.WriteLine(file);
|
||||||
string path = Path.Combine(folder, file);
|
string path = Path.Combine(folder, file);
|
||||||
|
|
Loading…
Reference in a new issue