aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreriktorbjorn2011-06-12 12:49:47 +0200
committerAlyssa Milburn2011-06-15 17:34:18 +0200
commitfdcb21ffee2688fec1c1b34ebf4a0a14fe4fcbf1 (patch)
treeec2d26182f15ece927c365124ed193f5b684a493
parenta3e9cef4d0dd1acf7e075cb7bda10905da7949cf (diff)
downloadscummvm-rg350-fdcb21ffee2688fec1c1b34ebf4a0a14fe4fcbf1.tar.gz
scummvm-rg350-fdcb21ffee2688fec1c1b34ebf4a0a14fe4fcbf1.tar.bz2
scummvm-rg350-fdcb21ffee2688fec1c1b34ebf4a0a14fe4fcbf1.zip
DREAMWEB: Unstub dosreturn().
Note that clicking on the "Return to DOS" button still calls a stub function, but at least it no longer dies on mouse-over.
-rw-r--r--engines/dreamweb/dreamweb.cpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index c1e885bc46..db49b74da2 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -613,8 +613,21 @@ void generalerror(Context &context) {
::error("generalerror");
}
+void commandonly(Context &context);
+
void dosreturn(Context &context) {
- ::error("dosreturn");
+ context._cmp(context.data.byte(kCommandtype), 250);
+ if (context.flags.z()) goto alreadydos;
+ context.data.byte(kCommandtype) = 250;
+ context.al = 46;
+ commandonly(context);
+alreadydos:
+ context.ax = context.data.word(kMousebutton);
+ context._and(context.ax, 1);
+ if (context.flags.z()) return;
+
+ quickquit2(context);
+ quickquit(context);
}
void set16colpalette(Context &context) {