From 0ad6ebe7b499ad3efffad93e2e7eb1033bcb6598 Mon Sep 17 00:00:00 2001 From: Julgodis <> Date: Sat, 10 Apr 2021 07:02:38 +0200 Subject: moved strings + decompile simple store functions --- tools/libdol2asm/data/function/base.py | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'tools/libdol2asm/data/function/base.py') diff --git a/tools/libdol2asm/data/function/base.py b/tools/libdol2asm/data/function/base.py index 0eda461881..9985e0966e 100644 --- a/tools/libdol2asm/data/function/base.py +++ b/tools/libdol2asm/data/function/base.py @@ -132,12 +132,19 @@ class Function(Symbol): for line in lines: await builder.write(line) - arg_type = "" + arg_type = [] if forward: - arg_type = ", ".join([x.type(specialize_templates=True) for x in self.argument_types]) + arg_type = [x.type(specialize_templates=True) for x in self.argument_types] else: - arg_type = ", ".join([x.decl(f"param_{i}",specialize_templates=True) for i, x in zip( - range(len(self.argument_types)), self.argument_types)]) + arg_type = [ + x.decl(f"param_{i}",specialize_templates=True) + for i, x in enumerate(self.argument_types) + ] + + if self.demangled_name and self.demangled_name.require_specialization: + arg_type = [f"void* _this", *arg_type] + + arg_type = ", ".join(arg_type) if self._section == ".init": await builder.write_nonewline(f"SECTION_INIT ") -- cgit v1.2.3