tty builds and executes
curses builds but crashes
gui - not even trying right now
* to help MinGW decide which entry point to choose. If both main and
* WinMain exist, the resulting executable won't work correctly.
*/
-#ifndef __MINGW32__
int
+#ifndef __MINGW32__
main(argc, argv)
+#else
+mingw_main(argc, argv)
+#endif
int argc;
char *argv[];
{
/*NOTREACHED*/
return 0;
}
-#endif
boolean
pcmain(argc, argv)
*/
#ifdef __MINGW32__
extern char default_window_sys[];
+extern int mingw_main(int argc, char **argv);
int
main(argc, argv)
{
boolean resuming;
- sys_early_init();
- Strcpy(default_window_sys, "tty");
- resuming = pcmain(argc, argv);
- moveloop(resuming);
+ resuming = mingw_main(argc, argv);
nethack_exit(EXIT_SUCCESS);
/*NOTREACHED*/
return 0;