From 6f8a4bb336e3a881fabe7eb857a227a6dcd3d026 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Mon, 26 Dec 2011 05:46:01 +0000 Subject: DREAMWEB: Ported 'searchforfiles' to C++ --- engines/dreamweb/monitor.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'engines/dreamweb/monitor.cpp') diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp index 4627597ab0..f3aad7a496 100644 --- a/engines/dreamweb/monitor.cpp +++ b/engines/dreamweb/monitor.cpp @@ -514,4 +514,17 @@ void DreamGenContext::signOn() { } } +void DreamGenContext::searchForFiles() { + bx = kTextstart; + + while (true) { + al = es.byte(bx); + bx++; + if (al == '*') + return; // "endofdir" + if (al == 34) + monPrint(); + } +} + } // End of namespace DreamGen -- cgit v1.2.3