license message box on Windows

This commit is contained in:
2018-08-24 06:58:09 +02:00
parent a37ea5309b
commit 1c3e1b7e55
3 changed files with 22 additions and 6 deletions

View File

@@ -293,12 +293,16 @@ int main(int argc, char** argv)
WNDCLASS wc;
PIXELFORMATDESCRIPTOR pfd;
if (!App::I.check_license())
return -1;
if (argc == 1)
App::I.initLog();
if (!App::I.check_license())
{
MessageBoxA(NULL, "Unable to verify this demo license, please make sure you are connected to Internet.",
"PanoPainter - License Error", MB_ICONERROR | MB_OK);
return -1;
}
SetupExceptionHandler();
BT_SetTerminate();