aboutsummaryrefslogtreecommitdiff
path: root/engines/engine.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2011-08-05 21:16:38 +0100
committerEugene Sandulenko2011-08-06 11:30:49 +0100
commit54f53833562867c2b266a778eff9731489f78118 (patch)
tree1c583c8041250f624445b9d48e05c168b4f33136 /engines/engine.cpp
parent2fa17c44edf07f4f82147a6070950e7d8f7ee2f4 (diff)
downloadscummvm-rg350-54f53833562867c2b266a778eff9731489f78118.tar.gz
scummvm-rg350-54f53833562867c2b266a778eff9731489f78118.tar.bz2
scummvm-rg350-54f53833562867c2b266a778eff9731489f78118.zip
TASKBAR: Set taskbar to error on engine error()
Diffstat (limited to 'engines/engine.cpp')
-rw-r--r--engines/engine.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/engine.cpp b/engines/engine.cpp
index b19daa2611..5fc8f62e27 100644
--- a/engines/engine.cpp
+++ b/engines/engine.cpp
@@ -41,6 +41,7 @@
#include "common/list.h"
#include "common/list_intern.h"
#include "common/scummsys.h"
+#include "common/taskbar.h"
#include "common/textconsole.h"
#include "common/translation.h"
@@ -83,6 +84,11 @@ static void defaultErrorHandler(const char *msg) {
debugger->attach(msg);
debugger->onFrame();
}
+
+#if defined(USE_TASKBAR)
+ g_system->getTaskbarManager()->setProgressState(Common::TaskbarManager::kTaskbarError);
+#endif
+
}
}