aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichieSams2013-09-15 14:08:14 -0500
committerRichieSams2013-09-15 15:00:40 -0500
commitb50afa2b154c412c40b534a41e9654da8786f5e6 (patch)
tree5fb5b33e2b52842b2a7264fac5ab4bb01ae439e4
parent752807b4710ae7ff5c96f3ced985a56da0227d7c (diff)
downloadscummvm-rg350-b50afa2b154c412c40b534a41e9654da8786f5e6.tar.gz
scummvm-rg350-b50afa2b154c412c40b534a41e9654da8786f5e6.tar.bz2
scummvm-rg350-b50afa2b154c412c40b534a41e9654da8786f5e6.zip
ZVISION: Remove unused function
-rw-r--r--engines/zvision/zvision.cpp55
-rw-r--r--engines/zvision/zvision.h10
2 files changed, 3 insertions, 62 deletions
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp
index f8580703ca..09f5ea30b1 100644
--- a/engines/zvision/zvision.cpp
+++ b/engines/zvision/zvision.cpp
@@ -175,59 +175,4 @@ Common::String ZVision::generateAutoSaveFileName() {
return Common::String::format("%s.auto", _targetName.c_str());
}
-void ZVision::cycleThroughCursors() {
- Common::ArchiveMemberList list;
- SearchMan.listMatchingMembers(list, "*.zcr");
-
- Common::ArchiveMemberList::iterator iter = list.begin();
- ZorkCursor cursor;
- bool cursorChanged = false;
-
- _system->showMouse(true);
-
- bool done = false;
- while (!done && !shouldQuit()) {
- _clock.update();
- uint32 currentTime = _clock.getLastMeasuredTime();
-
- while (_eventMan->pollEvent(_event)) {
- if (_event.type == Common::EVENT_KEYDOWN) {
- switch (_event.kbd.keycode) {
- case Common::KEYCODE_LEFT:
- --iter;
- cursorChanged = true;
- break;
- case Common::KEYCODE_RIGHT:
- ++iter;
- cursorChanged = true;
- break;
- case Common::KEYCODE_RETURN:
- debug("%s", (*iter)->getName().c_str());
- break;
- case Common::KEYCODE_ESCAPE:
- done = true;
- break;
- default:
- break;
- }
- }
- }
-
- if (cursorChanged) {
- cursor = ZorkCursor((*iter)->getName());
-
- _system->setMouseCursor(cursor.getSurface(), cursor.getWidth(), cursor.getHeight(), cursor.getHotspotX(), cursor.getHotspotY(), cursor.getHeight(), true, &_pixelFormat);
- cursorChanged = false;
- }
-
- _system->updateScreen();
-
- // Calculate the frame delay based off a desired frame time
- int delay = _desiredFrameTime - int32(_system->getMillis() - currentTime);
- // Ensure non-negative
- delay = delay < 0 ? 0 : delay;
- _system->delayMillis(delay);
- }
-}
-
} // End of namespace ZVision
diff --git a/engines/zvision/zvision.h b/engines/zvision/zvision.h
index 1a259d0a22..2e5359b10b 100644
--- a/engines/zvision/zvision.h
+++ b/engines/zvision/zvision.h
@@ -131,18 +131,14 @@ public:
void playAnimation(RlfAnimation *animation, uint16 x, uint16 y, DisposeAfterUse::Flag disposeAfterUse = DisposeAfterUse::YES);
void playAnimation(Video::VideoDecoder *animation, uint16 x, uint16 y, DisposeAfterUse::Flag disposeAfterUse = DisposeAfterUse::YES);
- /**
- * Utility method to cycle through all the cursors in the game. After
- * calling, use Left and Right arrows to cycle. Esc to quit. This is a
- * blocking function call.
- */
- void cycleThroughCursors();
-
Common::String generateSaveFileName(uint slot);
Common::String generateAutoSaveFileName();
private:
void initialize();
+ void initFonts();
+
+ void parseStrFile(const Common::String fileName);
/** Called every frame from ZVision::run() to process any events from EventMan */
void processEvents();