early_init() was being called twice on Windows GUI
This commit is contained in:
@@ -179,7 +179,9 @@ MAIN(int argc, char *argv[])
|
||||
safe_routines();
|
||||
#endif /* WIN32CON */
|
||||
|
||||
early_init(argc, argv);
|
||||
#ifndef MSWIN_GRAPHICS
|
||||
early_init(argc, argv); /* already in WinMain for MSWIN_GRAPHICS */
|
||||
#endif
|
||||
/* setting iflags.colorcount has to be after early_init()
|
||||
* because it zeros out all of iflags */
|
||||
hwnd = GetDesktopWindow();
|
||||
|
||||
@@ -131,7 +131,7 @@ WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
|
||||
windowprocs.win_wait_synch = mswin_wait_synch;
|
||||
|
||||
win10_init();
|
||||
/* early_init(0, NULL); */ /* Change as needed to support CRASHREPORT */
|
||||
early_init(0, NULL); /* Change as needed to support CRASHREPORT */
|
||||
|
||||
/* init application structure */
|
||||
_nethack_app.hApp = hInstance;
|
||||
|
||||
Reference in New Issue
Block a user