more win32tty fixes
There were still some significant startup message problems with win32tty. I've spent a lot of time in the debugger tracing through them all. I think I've got them all worked out now, certainly the ones that I was aware of. There may be some I haven't discovered. Testing welcomed of course! This patch also attempts to diagnose the error where someone tries to execute NetHack directly out of a zip file, and provide them with a (hopefully) helpful message similar to what we might end up telling them if they wrote in. If you want to test that part, you can comment out the line in the Makefile that adds "dungeon" to nhdat, and delete the nhdat in your binary and src directories, and "make install". Then add the value of your TEMP environment variable as a DATADIR statement in defaults.nh (here's mine): DATADIR=C:\DOCUME~1\ALLISO~1\LOCALS~1\Temp The diagnostic code engages if the game fails to open dungeon. It then checks to see if it the game dir is the TEMP directory for your system, and if so it prints the message.
This commit is contained in:
@@ -1333,7 +1333,6 @@ E void NDECL(lan_mail_terminate);
|
||||
E void NDECL(get_scr_size);
|
||||
E int NDECL(nttty_kbhit);
|
||||
E void NDECL(nttty_open);
|
||||
E void NDECL(nttty_close);
|
||||
E void NDECL(nttty_rubout);
|
||||
E int NDECL(tgetch);
|
||||
E int FDECL(ntposkey,(int *, int *, int *));
|
||||
|
||||
@@ -65,6 +65,12 @@
|
||||
* objects being thrown when the hangup occurs.
|
||||
*/
|
||||
|
||||
/* Stuff to help the user with some common, yet significant errors */
|
||||
#define INTERJECT_PANIC 0
|
||||
#define INTERJECTION_TYPES (INTERJECT_PANIC + 1)
|
||||
extern void FDECL(interject_assistance, (int,int,genericptr_t,genericptr_t));
|
||||
extern void FDECL(interject, (int));
|
||||
|
||||
/* The following is needed for prototypes of certain functions */
|
||||
#if defined(_MSC_VER)
|
||||
#include <process.h> /* Provides prototypes of exit(), spawn() */
|
||||
|
||||
Reference in New Issue
Block a user