diff options
-rw-r--r-- | devtools/tasmrecover/tasm/cpp.py | 4 | ||||
-rw-r--r-- | engines/dreamweb/dreamgen.cpp | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py index f9afe48fd8..fa2dd672fb 100644 --- a/devtools/tasmrecover/tasm/cpp.py +++ b/devtools/tasmrecover/tasm/cpp.py @@ -505,7 +505,7 @@ namespace %s { n += 1 if (n & 0xf) == 0: data_impl += "\n\t\t" - data_impl += "};\n\tcontext.ds.assign(src, src + sizeof(src))" + data_impl += "};\n\tcontext.ds.assign(src, src + sizeof(src));\n" hid = "TASMRECOVER_%s_STUBS_H__" %self.namespace.upper() self.hd.write("""#ifndef %s #define %s @@ -524,7 +524,7 @@ namespace %s { self.hd.write("\n}\n\n#endif\n") self.hd.close() - self.fd.write("\nvoid __start(Context &context) { %s; %s(context); }\n" %(data_impl, start)) + self.fd.write("\nvoid __start(Context &context) { %s%s(context); \n}\n" %(data_impl, start)) self.fd.write("\nvoid __dispatch_call(Context &context, unsigned addr) {\n\tswitch(addr) {\n") self.proc_addr.sort(cmp = lambda x, y: x[1] - y[1]) diff --git a/engines/dreamweb/dreamgen.cpp b/engines/dreamweb/dreamgen.cpp index 3ec12c1363..cb94596a49 100644 --- a/engines/dreamweb/dreamgen.cpp +++ b/engines/dreamweb/dreamgen.cpp @@ -21427,7 +21427,9 @@ void __start(Context &context) { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, }; - context.ds.assign(src, src + sizeof(src)); dreamweb(context); } + context.ds.assign(src, src + sizeof(src)); +dreamweb(context); +} void __dispatch_call(Context &context, unsigned addr) { switch(addr) { |