aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorNorbert Lange2009-08-08 19:09:30 +0000
committerNorbert Lange2009-08-08 19:09:30 +0000
commit0350a1598deea8d1af252ddd96a490699d10e2e2 (patch)
tree11557d7a87ee5da2ee20e6c13e8be7d2607f393c /base
parentdf06592be1b4c9904acde5a843d3ab3d076c65ac (diff)
parent65a39cc2b0ebb989444330c561743ba0466c1a9c (diff)
downloadscummvm-rg350-0350a1598deea8d1af252ddd96a490699d10e2e2.tar.gz
scummvm-rg350-0350a1598deea8d1af252ddd96a490699d10e2e2.tar.bz2
scummvm-rg350-0350a1598deea8d1af252ddd96a490699d10e2e2.zip
merge with trunk
svn-id: r43134
Diffstat (limited to 'base')
-rw-r--r--base/internal_version.h2
-rw-r--r--base/main.cpp15
2 files changed, 13 insertions, 4 deletions
diff --git a/base/internal_version.h b/base/internal_version.h
index 0838e8ad2a..68e3127020 100644
--- a/base/internal_version.h
+++ b/base/internal_version.h
@@ -2,4 +2,4 @@
#define SCUMMVM_SVN_REVISION
#endif
-#define SCUMMVM_VERSION "1.0.0svn" SCUMMVM_SVN_REVISION
+#define SCUMMVM_VERSION "1.1.0svn" SCUMMVM_SVN_REVISION
diff --git a/base/main.cpp b/base/main.cpp
index 6f8a61a595..39647f1534 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -41,6 +41,7 @@
#include "common/config-manager.h"
#include "common/debug.h"
#include "common/events.h"
+#include "common/EventRecorder.h"
#include "common/file.h"
#include "common/fs.h"
#include "common/system.h"
@@ -168,9 +169,9 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const
// Set the window caption to the game name
Common::String caption(ConfMan.get("description"));
- Common::String desc = EngineMan.findGame(ConfMan.get("gameid")).description();
- if (caption.empty() && !desc.empty())
- caption = desc;
+ if (caption.empty()) {
+ caption = EngineMan.findGame(ConfMan.get("gameid")).description();
+ }
if (caption.empty())
caption = ConfMan.getActiveDomainName(); // Use the domain (=target) name
if (!caption.empty()) {
@@ -389,6 +390,14 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) {
// take place after the backend is initiated and the screen has been setup
system.getEventManager()->init();
+ // Directly after initializing the event manager, we will initialize our
+ // event recorder.
+ //
+ // TODO: This is just to match the current behavior, when we further extend
+ // our event recorder, we might do this at another place. Or even change
+ // the whole API for that ;-).
+ g_eventRec.init();
+
// Now as the event manager is created, setup the keymapper
setupKeymapper(system);