diff options
author | Vladimir | 2011-06-07 01:53:42 +0400 |
---|---|---|
committer | Alyssa Milburn | 2011-06-15 17:30:56 +0200 |
commit | 59b0c4b4b5992d6fe0bdc0b88849169d167b98fe (patch) | |
tree | e2e4ec6ce55092b6d32eb651bac675b223e05af6 /devtools/tasmrecover/tasm | |
parent | 5b9a40584e8f244169943c419763c2ad35fa851a (diff) | |
download | scummvm-rg350-59b0c4b4b5992d6fe0bdc0b88849169d167b98fe.tar.gz scummvm-rg350-59b0c4b4b5992d6fe0bdc0b88849169d167b98fe.tar.bz2 scummvm-rg350-59b0c4b4b5992d6fe0bdc0b88849169d167b98fe.zip |
DREAMWEB: added all offsets
Diffstat (limited to 'devtools/tasmrecover/tasm')
-rw-r--r-- | devtools/tasmrecover/tasm/cpp.py | 7 | ||||
-rw-r--r-- | devtools/tasmrecover/tasm/parser.py | 3 |
2 files changed, 10 insertions, 0 deletions
diff --git a/devtools/tasmrecover/tasm/cpp.py b/devtools/tasmrecover/tasm/cpp.py index fa2dd672fb..fe7f3ff9d6 100644 --- a/devtools/tasmrecover/tasm/cpp.py +++ b/devtools/tasmrecover/tasm/cpp.py @@ -521,6 +521,13 @@ namespace %s { """ %(self.namespace)) for f in self.failed: self.hd.write("\tvoid %s(Context &context);\n" %f) + + offsets_decl = "\n" + for k,v in self.context.get_offsets().items(): + offsets_decl += "\tconst static uint16 k%s = %d;\n" %(k.capitalize(), v[0]) + offsets_decl += "\n" + self.hd.write(offsets_decl); + self.hd.write("\n}\n\n#endif\n") self.hd.close() diff --git a/devtools/tasmrecover/tasm/parser.py b/devtools/tasmrecover/tasm/parser.py index 8dbf54c5a3..6342a17d84 100644 --- a/devtools/tasmrecover/tasm/parser.py +++ b/devtools/tasmrecover/tasm/parser.py @@ -64,6 +64,9 @@ class parser: def get_offset(self, name): name = name.lower() return self.__offsets[name] + + def get_offsets(self): + return self.__offsets def include(self, basedir, fname): path = fname.split('\\')[self.strip_path:] |