aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/kyra_v2.cpp8
-rw-r--r--engines/kyra/util.h2
2 files changed, 6 insertions, 4 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp
index 7a9d631c25..3e08ea43c6 100644
--- a/engines/kyra/kyra_v2.cpp
+++ b/engines/kyra/kyra_v2.cpp
@@ -137,7 +137,7 @@ int KyraEngine_v2::go() {
}
void KyraEngine_v2::mainMenu() {
- /*bool running = true;
+ bool running = true;
while (running && !_quitFlag) {
seq_playSequences(kSequenceTitle);
@@ -145,11 +145,11 @@ void KyraEngine_v2::mainMenu() {
switch (gui_handleMainMenu()) {
case 0:
- _screen->showMouse();*/
+ _screen->showMouse();
startup();
runLoop();
cleanup();
- /*running = false;
+ running = false;
break;
case 1:
seq_playSequences(kSequenceOverview, kSequenceZanFaun);
@@ -163,7 +163,7 @@ void KyraEngine_v2::mainMenu() {
break;
}
_screen->hideMouse();
- }*/
+ }
}
void KyraEngine_v2::startup() {
diff --git a/engines/kyra/util.h b/engines/kyra/util.h
index edb2ca454a..98692df015 100644
--- a/engines/kyra/util.h
+++ b/engines/kyra/util.h
@@ -32,6 +32,8 @@ namespace Kyra {
template<class Arg, class Res>
struct Functor1 : public Common::UnaryFunction<Arg, Res> {
+ virtual ~Functor1() {}
+
virtual operator bool() const = 0;
virtual Res operator()(Arg) const = 0;
};