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(); }
public static void Shutdown() { ExtensionsManager.Shutdown(); }
public static void InitOnMain() { ExtensionsManager.InitOnMain(); }