Merge pull request #1437 from ts-korhonen/master
Move cpu_override warning dialog after main window is created so that…
This commit is contained in:
@@ -1339,11 +1339,6 @@ ui_init(int nCmdShow)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Warn the user about unsupported configs. */
|
|
||||||
if (cpu_override && ui_msgbox_ex(MBX_WARNING | MBX_QUESTION_OK, (void *) IDS_2145, (void *) IDS_2146, (void *) IDS_2147, (void *) IDS_2119, NULL)) {
|
|
||||||
return(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Create our main window's class and register it. */
|
/* Create our main window's class and register it. */
|
||||||
wincl.hInstance = hinstance;
|
wincl.hInstance = hinstance;
|
||||||
wincl.lpszClassName = CLASS_NAME;
|
wincl.lpszClassName = CLASS_NAME;
|
||||||
@@ -1438,6 +1433,13 @@ ui_init(int nCmdShow)
|
|||||||
/* Make the window visible on the screen. */
|
/* Make the window visible on the screen. */
|
||||||
ShowWindow(hwnd, nCmdShow);
|
ShowWindow(hwnd, nCmdShow);
|
||||||
|
|
||||||
|
/* Warn the user about unsupported configs. */
|
||||||
|
if (cpu_override && ui_msgbox_ex(MBX_WARNING | MBX_QUESTION_OK, (void*)IDS_2145, (void*)IDS_2146, (void*)IDS_2147, (void*)IDS_2119, NULL))
|
||||||
|
{
|
||||||
|
DestroyWindow(hwnd);
|
||||||
|
return(0);
|
||||||
|
}
|
||||||
|
|
||||||
GetClipCursor(&oldclip);
|
GetClipCursor(&oldclip);
|
||||||
|
|
||||||
/* Initialize the RawInput (keyboard) module. */
|
/* Initialize the RawInput (keyboard) module. */
|
||||||
|
Reference in New Issue
Block a user