public static void Initialize(string folderRuntime, ExtractCompilerFlags extractCompilerFlags)
        {
            if (folderRuntime == null)
            {
                throw new ArgumentNullException(nameof(folderRuntime));
            }
            if (extractCompilerFlags == null)
            {
                throw new ArgumentNullException(nameof(extractCompilerFlags));
            }

            if (!Directory.Exists(folderRuntime))
            {
                Debug.LogError($"Unable to initialize the burst JIT compiler. The folder `{folderRuntime}` does not exist");
                return;
            }

            var message = InitializeInternal(folderRuntime, extractCompilerFlags);

            if (!String.IsNullOrEmpty(message))
            {
                Debug.LogError($"Unexpected error while trying to initialize the burst JIT compiler: {message}");
            }
        }
Exemplo n.º 2
0
 static extern string InitializeInternal(string path, ExtractCompilerFlags extractCompilerFlags);