Commit 4d14369b authored by IMJoyJ's avatar IMJoyJ Committed by nanahira

Minor improve (#19)

* Improve replay playing behavior in auto watch mode

* Auto exit ygopro in replay auto watch mode when error occurs
parent d619f487
...@@ -321,7 +321,13 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) { ...@@ -321,7 +321,13 @@ bool ReplayMode::ReplayAnalyze(char* msg, unsigned int len) {
mainGame->PopupElement(mainGame->wMessage); mainGame->PopupElement(mainGame->wMessage);
mainGame->gMutex.unlock(); mainGame->gMutex.unlock();
mainGame->actionSignal.Reset(); mainGame->actionSignal.Reset();
mainGame->actionSignal.Wait(); if (auto_watch_mode){
mainGame->actionSignal.Wait(2000);
mainGame->device->closeDevice();
}
else{
mainGame->actionSignal.Wait();
}
return false; return false;
} }
case MSG_HINT: { case MSG_HINT: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment