]> 4ch.mooo.com Git - 16.git/blobdiff - src/16.c
serial debug output added. they are added as _DEBUG_INIT and _DEBUG functions.
[16.git] / src / 16.c
index 990a21150efd3f2bad5d6e792cf596cac4c206c0..380c3359bf7d681dfeeb3e92a4fa1a43088903c0 100755 (executable)
--- a/src/16.c
+++ b/src/16.c
@@ -53,6 +53,13 @@ main(int argc, char *argv[])
                return;\r
        }\r
 \r
+       if (_DEBUG_INIT() == 0) {\r
+#ifdef DEBUGSERIAL\r
+               printf("WARNING: Failed to initialize DEBUG output\n");\r
+#endif\r
+       }\r
+       _DEBUG("Serial debug output started\n"); // NTS: All serial output must end messages with newline, or DOSBox-X will not emit text to log\r
+\r
        //screen = modexDefaultPage();\r
        engi_stat = ENGI_RUN;\r
        textInit();\r