Exemple #1
0
        private static void ProcessError(Process process, string message)
        {
            if (message != null)
            {
                message = message.Trim();
            }
            else
            {
                Debug.LogWarning("[Ink compiler process] Got spurious null error message, ignoring");
                return;
            }
            // Byte-order mark seems to confuse the living hell out of the library
            if (message == "" || message[0] == (char)65279)
            {
                Debug.LogWarning("[Ink compiler process] Got empty error message, ignoring");
                return;
            }
            if (InkEditorUtils.IsNullOrWhiteSpace(message) || message == "???")
            {
                return;
            }
            Debug.Log(message[0]);
            Debug.Log(char.IsWhiteSpace(message[0]));
            Debug.Log((int)(message[0]));
            CompilationStackItem compilingFile = InkLibrary.GetCompilationStackItem(process);

            compilingFile.errorOutput.Add(message);
        }
Exemple #2
0
        private static void ProcessError(Process process, string message)
        {
            message = message.Trim();
            if (InkEditorUtils.IsNullOrWhiteSpace(message) || message == "???")
            {
                return;
            }
            Debug.Log(message[0]);
            Debug.Log(char.IsWhiteSpace(message[0]));
            Debug.Log((int)(message[0]));
            CompilationStackItem compilingFile = InkLibrary.GetCompilationStackItem(process);

            compilingFile.errorOutput.Add(message);
        }