DREAMWEB: Cleanup searchForFiles()

This commit is contained in:
Filippos Karapetis 2011-12-26 13:33:37 +02:00
parent 1b11f48a35
commit 2ca00bc3c6

View File

@ -515,14 +515,15 @@ void DreamGenContext::signOn() {
}
void DreamGenContext::searchForFiles() {
bx = kTextstart;
uint16 offset = kTextstart;
byte curChar;
while (true) {
al = es.byte(bx);
bx++;
if (al == '*')
curChar = es.byte(offset);
offset++;
if (curChar == '*')
return; // "endofdir"
if (al == 34)
if (curChar == 34)
monPrint();
}
}