]> git.sur5r.net Git - cc65/blobdiff - samples/multidemo.c
Removed a "cc65_" prefix.
[cc65] / samples / multidemo.c
index 74039cfd6583c773274274335111d90835c7f40b..396d7344a1b6dfacd9348e3052a5b6314006aeb4 100644 (file)
 
 
 #include <string.h>
-#include <conio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <dirent.h>
 #include <em.h>
+#include <cc65.h>
 #ifndef __CBM__
 #include <fcntl.h>
 #include <unistd.h>
 #else
+#include <cbm.h>
 #include <device.h>
 #endif
 
@@ -229,7 +230,7 @@ void main (void)
     }
 
     log ("Press any key...");
-    cgetc ();
+    getchar ();
 
     if (loadoverlay (1)) {
         log ("Calling overlay 1 from main");
@@ -254,6 +255,8 @@ void main (void)
         foobar ();
     }
 
-    log ("Press any key...");
-    cgetc ();
+    if (doesclrscrafterexit ()) {
+        log ("Press any key...");
+        getchar ();
+    }
 }