MCPcopy Create free account
hub / github.com/JHRobotics/softgpu / softgpu_done

Function softgpu_done

softgpu.c:388–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386static BOOL need_reboot = FALSE;
387
388void softgpu_done(HWND hwnd, BOOL reboot)
389{
390 if(installbtn != INVALID_HANDLE_VALUE)
391 {
392 DWORD sty = GetWindowLongA(installbtn, GWL_STYLE) & (~WS_DISABLED);
393 SetWindowLongA(installbtn, GWL_STYLE, sty);
394 }
395
396 SetWindowText(infobox, "SUCCESS!");
397
398 if(reboot)
399 {
400 int id = MessageBoxA(hwnd, "Installation complete! Reboot is required. Reboot now?", "Complete!", MB_YESNO | MB_ICONQUESTION);
401 if(id == IDYES)
402 {
403 need_reboot = TRUE;
404 PostQuitMessage(0);
405 }
406 }
407 else
408 {
409 int id = MessageBoxA(hwnd, "Driver files copied successfully! Close installer now?", "Complete!", MB_YESNO | MB_ICONQUESTION);
410 if(id == IDYES)
411 {
412 PostQuitMessage(0);
413 }
414 }
415}
416
417void softgpu_reset(HWND hwnd)
418{

Callers 1

timer_procFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected