make new opengl source generator

This commit is contained in:
Youmu Liu
2026-08-26 18:12:08 +08:00
parent 65041ff8bc
commit 75bf7fc139
126 changed files with 8934 additions and 26139 deletions
+60
View File
@@ -0,0 +1,60 @@
// -----------------------------------------------------------------------------
// file="Program"
// Project: StgSharp
// Copyright (c) Nitload.
// SPDX-License-Identifier: MIT
// -----------------------------------------------------------------------------
using System;
using System.IO;
using System.Xml;
namespace StgSharp.GenerateGL
{
internal static class Program
{
private static int Main(
string[] args
)
{
try
{
return XmlCli.Run(args);
}
catch (IOException exception)
{
return WriteError(exception);
}
catch (XmlException exception)
{
return WriteError(exception);
}
catch (InvalidDataException exception)
{
return WriteError(exception);
}
catch (UnauthorizedAccessException exception)
{
return WriteError(exception);
}
catch (ArgumentException exception)
{
return WriteError(exception);
}
catch (NotSupportedException exception)
{
return WriteError(exception);
}
}
private static int WriteError(
Exception exception
)
{
Console.Error.WriteLine($"error: {exception.Message}");
return XmlCli.LoadErrorExitCode;
}
}
}