mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-07-04 16:48:13 +00:00
Print diagnostic message when docfile translation fails.
This commit is contained in:
parent
598ec9b570
commit
dddae1ac27
|
@ -743,18 +743,20 @@ namespace Bind.GL2
|
||||||
docfiles.Add(Path.GetFileName(file), file);
|
docfiles.Add(Path.GetFileName(file), file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
string docfile = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
string file = Settings.FunctionPrefix + f.WrappedDelegate.Name + ".xml";
|
docfile = Settings.FunctionPrefix + f.WrappedDelegate.Name + ".xml";
|
||||||
if (!docfiles.ContainsKey(file))
|
if (!docfiles.ContainsKey(docfile))
|
||||||
file = Settings.FunctionPrefix + f.TrimmedName + ".xml";
|
docfile = Settings.FunctionPrefix + f.TrimmedName + ".xml";
|
||||||
if (!docfiles.ContainsKey(file))
|
if (!docfiles.ContainsKey(docfile))
|
||||||
file = Settings.FunctionPrefix + f.TrimmedName.TrimEnd(numbers) + ".xml";
|
docfile = Settings.FunctionPrefix + f.TrimmedName.TrimEnd(numbers) + ".xml";
|
||||||
|
|
||||||
string doc = null;
|
string doc = null;
|
||||||
if (docfiles.ContainsKey(file))
|
if (docfiles.ContainsKey(docfile))
|
||||||
{
|
{
|
||||||
doc = processor.ProcessFile(docfiles[file]);
|
doc = processor.ProcessFile(docfiles[docfile]);
|
||||||
}
|
}
|
||||||
if (doc == null)
|
if (doc == null)
|
||||||
{
|
{
|
||||||
|
@ -783,8 +785,10 @@ namespace Bind.GL2
|
||||||
|
|
||||||
sw.WriteLine(doc);
|
sw.WriteLine(doc);
|
||||||
}
|
}
|
||||||
catch
|
catch (Exception e)
|
||||||
{ }
|
{
|
||||||
|
Console.WriteLine("[Warning] Error processing file {0}: {1}", docfile, e.ToString());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
Loading…
Reference in a new issue