1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 19:57:45 +00:00

Ignore OCR errors in Watchdog

This commit is contained in:
redstrate 2022-01-11 00:07:56 -05:00
parent 348c2148dd
commit 43eeecac97

View file

@ -138,6 +138,10 @@ void Watchdog::launchGame(const ProfileSettings &settings, LoginAuth auth) {
} else {
auto result = parser->parseImage(qimageFromXImage(image));
if (result != lastResult) {
// skip OCR errors (TODO: should be handled by GameParser itself)
if(result.state == ScreenState::InLoginQueue && result.playersInQueue == 0)
return;
switch (result.state) {
case ScreenState::InLoginQueue: {
icon->showMessage("Watchdog",