예제 #1
0
        public static void Init(Action <LogType, string, string, Exception> onLog)
        {
            QueryPerformanceFrequency(out s_performanceFrequency);

            s_onLog = onLog;
            s_onLogCallbackFunction = new LogCallbackFunction((s, p, m) => onLog((LogType)s, p, "  -" + m.TrimEnd('\n'), null));
            StreamerConstants c = new StreamerConstants();

            Core_Init(Marshal.GetFunctionPointerForDelegate(s_onLogCallbackFunction), ref c);
            Const  = c;
            Const2 = new StreamerConstants2(c);

            ExtensionsManager.Init();
        }
예제 #2
0
 public static void Shutdown()
 {
     ExtensionsManager.Shutdown();
 }
예제 #3
0
 public static void InitOnMain()
 {
     ExtensionsManager.InitOnMain();
 }