use modular initing system rather than calling Init() method.

This commit is contained in:
Youmu Liu
2025-11-11 18:22:28 +08:00
parent 678a846e54
commit 44bf78b937
65 changed files with 1328 additions and 1814 deletions
+2 -1
View File
@@ -44,7 +44,6 @@ namespace StgSharp
private static byte[] _currentHash = [];
private static bool _inited;
private static int _mainThreadID = -1;
public static byte[] CurrentAssemblyHash
{
@@ -73,6 +72,8 @@ namespace StgSharp
internal set => _mainThreadID = value;
}
private static int _mainThreadID { get; set; } = -1;
/// <summary>
/// CustomizeInit an instance of OpenGL program, This method should be called before any
/// other World api.