more startup tweaking for Windows

This commit is contained in:
nhmall
2018-12-08 21:17:34 -05:00
parent 547f0a32cc
commit 01625455d9
3 changed files with 28 additions and 18 deletions

View File

@@ -63,6 +63,8 @@ _nhapply_image_transparent(HDC hDC, int x, int y, int width, int height,
// Global Variables:
NHWinApp _nethack_app;
extern int GUILaunched; /* We tell shared startup code in windmain.c
that the GUI was launched via this */
#ifdef __BORLANDC__
#define _stricmp(s1, s2) stricmp(s1, s2)
@@ -233,7 +235,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
}
free(savefile);
}
GUILaunched = 1;
/* let main do the argument processing */
(void) main(argc, argv);
return 0;