aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/cursors.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2010-11-29 06:35:50 +0000
committerMatthew Hoops2010-11-29 06:35:50 +0000
commit6a456a0e0e5e3448a13d55b836d3ef9e182bf627 (patch)
treef2c43f9740a11840f7614529d98551be0f184296 /engines/mohawk/cursors.cpp
parent207b9a25df3cfc9f6cec91d709082eafeeaae60f (diff)
downloadscummvm-rg350-6a456a0e0e5e3448a13d55b836d3ef9e182bf627.tar.gz
scummvm-rg350-6a456a0e0e5e3448a13d55b836d3ef9e182bf627.tar.bz2
scummvm-rg350-6a456a0e0e5e3448a13d55b836d3ef9e182bf627.zip
MOHAWK: Set Maggie's Farmyard Adventure as an LB game
The game will start, but has many problems as it uses a later version of the LB code. Also, make sure we check for filename being empty to stop an assertion in the MacCursorManager. svn-id: r54566
Diffstat (limited to 'engines/mohawk/cursors.cpp')
-rw-r--r--engines/mohawk/cursors.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/mohawk/cursors.cpp b/engines/mohawk/cursors.cpp
index c7288ab0c3..675f2d86bb 100644
--- a/engines/mohawk/cursors.cpp
+++ b/engines/mohawk/cursors.cpp
@@ -310,12 +310,14 @@ void NECursorManager::setCursor(uint16 id) {
}
MacCursorManager::MacCursorManager(const Common::String &appName) {
- _resFork = new Common::MacResManager();
+ if (!appName.empty()) {
+ _resFork = new Common::MacResManager();
- if (!_resFork->open(appName)) {
- // Not all have cursors anyway, so this is not a problem
- delete _resFork;
- _resFork = 0;
+ if (!_resFork->open(appName)) {
+ // Not all have cursors anyway, so this is not a problem
+ delete _resFork;
+ _resFork = 0;
+ }
}
}