From 0584dbaad9f65edfb0e6fa8b49914c03143846f2 Mon Sep 17 00:00:00 2001 From: pixel Date: Thu, 2 Oct 2003 19:14:13 +0000 Subject: Jour1... --- PE/extract-rooms.cpp | 57 +--------------------------------------------------- 1 file changed, 1 insertion(+), 56 deletions(-) (limited to 'PE/extract-rooms.cpp') diff --git a/PE/extract-rooms.cpp b/PE/extract-rooms.cpp index d7148ff..738411d 100644 --- a/PE/extract-rooms.cpp +++ b/PE/extract-rooms.cpp @@ -131,62 +131,7 @@ virtual int startup() throw (GeneralException) { printm(M_INFO, "Found %i bytes of text at %i\n", size, pos); - for (j = 0; j < size; j++) { - b = f->readU8(); - - if (b <= MAXCHAR) { - t->writeU8(table[b]); - } else { - switch(b) { - case 0xf7: - t->writeU8('\n'); - break; - case 0xf8: - (*t) << "\n"; - break; - case 0xf9: - (*t) << "\n\n"; - break; - case 0xfa: - (*t) << ""; - break; - case 0xfb: - j++; - j++; - a1 = f->readU8(); - switch(a1) { - case 0: - (*t) << ""; - break; - case 1: - (*t) << ""; - break; - case 9: - a2 = f->readU8(); - (*t) << "\n"; - break; - case 7: - a2 = f->readU8(); - (*t) << ""; - break; - default: - (*t) << ""; - break; - } - break; - case 0xfe: - j++; - b = f->readU8(); - (*t) << "\n"; - break; - case 0xff: - (*t) << "\n\n"; - break; - default: - (*t) << String().set("", b); - } - } - } + extracttext(f, t, size); delete t; } -- cgit v1.2.3