aboutsummaryrefslogtreecommitdiff
path: root/engines/dreamweb/monitor.cpp
diff options
context:
space:
mode:
authorBertrand Augereau2011-11-18 17:38:19 +0100
committerBertrand Augereau2011-11-18 17:38:19 +0100
commita09a39794cb4b9d0ca59b588a09e4dbcd1d6a5ad (patch)
treef84304dc84dfc395dd7879f7d81c882b2be76b56 /engines/dreamweb/monitor.cpp
parent29ff93e2577d68084ef95f481ee1cd370cf287f5 (diff)
downloadscummvm-rg350-a09a39794cb4b9d0ca59b588a09e4dbcd1d6a5ad.tar.gz
scummvm-rg350-a09a39794cb4b9d0ca59b588a09e4dbcd1d6a5ad.tar.bz2
scummvm-rg350-a09a39794cb4b9d0ca59b588a09e4dbcd1d6a5ad.zip
DREAMWEB: 'showcurrentfile' ported to C++
NB: This commit doesn't change the (wrong) layout of the file text
Diffstat (limited to 'engines/dreamweb/monitor.cpp')
-rw-r--r--engines/dreamweb/monitor.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp
index 530acc19a9..41df8c490b 100644
--- a/engines/dreamweb/monitor.cpp
+++ b/engines/dreamweb/monitor.cpp
@@ -201,5 +201,15 @@ void DreamGenContext::scrollmonitor() {
bx = pop();
}
+void DreamGenContext::showcurrentfile() {
+ uint16 x = 178;
+ const char *currentFile = (const char *)cs.ptr(kCurrentfile+1, 0);
+ while (*currentFile) {
+ char c = *currentFile++;
+ c = engine->modifyChar(c);
+ printchar((const Frame *)segRef(data.word(kTempcharset)).ptr(0, 0), &x, 37, c, 0, NULL, NULL);
+ }
+}
+
} /*namespace dreamgen */