internal void Init(string[] args, SurviveSimpleLogFn logFunc = null, bool dontStartYet = false) { if (logFunc == null) { logFunc = InfoEvent; } actx = Cfunctions_api.survive_simple_init_with_logger(args.Length, args, logFunc); if (actx == IntPtr.Zero) { throw new Exception("There was a problem initializing the lib!"); } if (!dontStartYet) { Start(); } }
public static extern SurviveSimpleContextPtr survive_simple_init_with_logger(int argc, string[] args, SurviveSimpleLogFn fn);
public SurviveAPI(string[] args, SurviveSimpleLogFn logFunc = null, bool dontStartYet = false) { Init(args, logFunc, dontStartYet); }