diff options
author | Filippos Karapetis | 2015-01-07 11:02:24 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-01-07 11:42:24 +0200 |
commit | 5949ab5aa6ce6a8b39ea44795e638204393adaf6 (patch) | |
tree | cad020066d0e15c9aee92a4f0a4f1a58bc80b8b2 /engines/zvision/graphics/cursors | |
parent | 9f642074ba8e17aa23b01bcee82b2293fe84f8f1 (diff) | |
download | scummvm-rg350-5949ab5aa6ce6a8b39ea44795e638204393adaf6.tar.gz scummvm-rg350-5949ab5aa6ce6a8b39ea44795e638204393adaf6.tar.bz2 scummvm-rg350-5949ab5aa6ce6a8b39ea44795e638204393adaf6.zip |
ZVISION: Error out when a cursor file can't be found
Diffstat (limited to 'engines/zvision/graphics/cursors')
-rw-r--r-- | engines/zvision/graphics/cursors/cursor.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/zvision/graphics/cursors/cursor.cpp b/engines/zvision/graphics/cursors/cursor.cpp index f32c68645d..2c011668ac 100644 --- a/engines/zvision/graphics/cursors/cursor.cpp +++ b/engines/zvision/graphics/cursors/cursor.cpp @@ -43,7 +43,7 @@ ZorkCursor::ZorkCursor(ZVision *engine, const Common::String &fileName) _hotspotY(0) { Common::File file; if (!engine->getSearchManager()->openFile(file, fileName)) - return; + error("Cursor file %s does not exist", fileName.c_str()); uint32 magic = file.readUint32BE(); if (magic != MKTAG('Z', 'C', 'R', '1')) { |