diff options
author | D G Turner | 2011-12-26 05:46:01 +0000 |
---|---|---|
committer | D G Turner | 2011-12-26 05:46:01 +0000 |
commit | 6f8a4bb336e3a881fabe7eb857a227a6dcd3d026 (patch) | |
tree | 6bc209a88c32da2b138323b62a3f7ee344924b50 /engines/dreamweb/monitor.cpp | |
parent | 389afc46660918409d69458bfbb096a6ba128f63 (diff) | |
download | scummvm-rg350-6f8a4bb336e3a881fabe7eb857a227a6dcd3d026.tar.gz scummvm-rg350-6f8a4bb336e3a881fabe7eb857a227a6dcd3d026.tar.bz2 scummvm-rg350-6f8a4bb336e3a881fabe7eb857a227a6dcd3d026.zip |
DREAMWEB: Ported 'searchforfiles' to C++
Diffstat (limited to 'engines/dreamweb/monitor.cpp')
-rw-r--r-- | engines/dreamweb/monitor.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
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 |