Fix ShimLib simulation logic.

This commit is contained in:
Krad
2022-05-12 09:04:02 +08:00
parent fb38907d3c
commit 2ee243a891

View File

@@ -39,10 +39,11 @@ void ThreadFunc(void* args){
stop_flag = 0;
break;
}
if (i == 20){
WaitForSingleObject(e1, INFINITE);
}
progress = (float)i * 0.1f;
if (i == 10){
WaitForSingleObject(e1, INFINITE);
}
Sleep(300);
}
status = READY;
@@ -73,6 +74,7 @@ int ScanControl(ScanAction actionType) {
case STOP:
statusCountFlag = 0;
stop_flag = 1;
progress = 0.0f;
status = READY;
printf("Stop everything!\r\n");
break;