diff options
author | Matthew Hoops | 2010-11-29 06:35:50 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-11-29 06:35:50 +0000 |
commit | 6a456a0e0e5e3448a13d55b836d3ef9e182bf627 (patch) | |
tree | f2c43f9740a11840f7614529d98551be0f184296 /engines/mohawk/cursors.cpp | |
parent | 207b9a25df3cfc9f6cec91d709082eafeeaae60f (diff) | |
download | scummvm-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.cpp | 12 |
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; + } } } |