aboutsummaryrefslogtreecommitdiff
path: root/devtools/tasmrecover
diff options
context:
space:
mode:
authorVladimir Menshakov2011-06-24 09:34:23 +0400
committerVladimir Menshakov2011-06-24 09:34:23 +0400
commita5748a34afe9ae837b14f26f69d6b3518ef91966 (patch)
tree0765cc5c6d876c3bc4a3c165e61d6e877b685485 /devtools/tasmrecover
parent7bdd3f3904828704d48e8b0a60fcfeab27f4287b (diff)
downloadscummvm-rg350-a5748a34afe9ae837b14f26f69d6b3518ef91966.tar.gz
scummvm-rg350-a5748a34afe9ae837b14f26f69d6b3518ef91966.tar.bz2
scummvm-rg350-a5748a34afe9ae837b14f26f69d6b3518ef91966.zip
DREAMWEB: Fixed continuing to another procedure. (axe misuse crash)
Diffstat (limited to 'devtools/tasmrecover')
-rw-r--r--devtools/tasmrecover/tasm/cpp.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py
index 0196e5b45c..dfdfb239f4 100644
--- a/devtools/tasmrecover/tasm/cpp.py
+++ b/devtools/tasmrecover/tasm/cpp.py
@@ -466,7 +466,9 @@ namespace %s {
self.resolve_label(s.label)
#adding statements
+ #BIG FIXME: this is quite ugly to handle code analysis from the code generation. rewrite me!
for label, proc, offset in self.unbounded:
+ self.body += "\treturn;\n" #we need to return before calling code from the other proc
self.body += "/*continuing to unbounded code: %s from %s:%d-%d*/\n" %(label, proc.name, offset, len(proc.stmts))
start = len(self.proc.stmts)
self.proc.add_label(label)