From 97310ab904eea1a80c2b2235e0a31a01f1fbaaae Mon Sep 17 00:00:00 2001 From: Vladimir Menshakov Date: Fri, 10 Jun 2011 03:19:58 +0400 Subject: DREAMWEB: asserted invalid calls --- devtools/tasmrecover/tasm/cpp.py | 1 + engines/dreamweb/dreamgen.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py index e94231f043..3caf21e6cf 100644 --- a/devtools/tasmrecover/tasm/cpp.py +++ b/devtools/tasmrecover/tasm/cpp.py @@ -564,6 +564,7 @@ namespace %s { self.proc_addr.sort(cmp = lambda x, y: x[1] - y[1]) for name,addr in self.proc_addr: self.fd.write("\t\tcase 0x%04x: %s(context); break;\n" %(addr, name)) + self.fd.write("\t\tdefault: ::error(\"invalid call to %04x dispatched\", (uint16)context.ax);") self.fd.write("\n\t}\n}\n\n} /*namespace*/\n") self.fd.close() diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 07a69f44be..c9fcfb3e6b 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -22131,7 +22131,7 @@ void __dispatch_call(Context &context, unsigned addr) { case 0xcbac: walkandexamine(context); break; case 0xcbb0: doload(context); break; case 0xcbb4: generalerror(context); break; - + default: ::error("invalid call to %04x dispatched", (uint16)context.ax); } } -- cgit v1.2.3