switch root namespace name to NITLOAD

This commit is contained in:
Youmu Liu
2026-09-02 18:15:03 +08:00
parent 4218baad48
commit 7c7101ee48
502 changed files with 710 additions and 721 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;
}
}
}