#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
}
log ("Press any key...");
- cgetc ();
+ getchar ();
if (loadoverlay (1)) {
log ("Calling overlay 1 from main");
foobar ();
}
- log ("Press any key...");
- cgetc ();
+ if (doesclrscrafterexit ()) {
+ log ("Press any key...");
+ getchar ();
+ }
}