mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-09-09 09:51:34 -07:00
to_asm and some constructor changes
This commit is contained in:
parent
6ee0c38b3c
commit
927d96621a
@ -397,8 +397,8 @@ class NewTextScript:
|
|||||||
def __init__(self, address, map_group=None, map_id=None, debug=False, label=None, force=False):
|
def __init__(self, address, map_group=None, map_id=None, debug=False, label=None, force=False):
|
||||||
self.address = address
|
self.address = address
|
||||||
self.map_group, self.map_id, self.debug = map_group, map_id, debug
|
self.map_group, self.map_id, self.debug = map_group, map_id, debug
|
||||||
self.dependencies = []
|
self.dependencies = None
|
||||||
self.commands = []
|
self.commands = None
|
||||||
self.force = force
|
self.force = force
|
||||||
|
|
||||||
if is_script_already_parsed_at(address) and not force:
|
if is_script_already_parsed_at(address) and not force:
|
||||||
@ -415,10 +415,13 @@ class NewTextScript:
|
|||||||
if self.dependencies != None and not recompute:
|
if self.dependencies != None and not recompute:
|
||||||
global_dependencies.update(self.dependencies)
|
global_dependencies.update(self.dependencies)
|
||||||
return self.dependencies
|
return self.dependencies
|
||||||
|
|
||||||
dependencies = []
|
dependencies = []
|
||||||
|
|
||||||
for command in self.commands:
|
for command in self.commands:
|
||||||
deps = command.get_dependencies(recompute=recompute, global_dependencies=global_dependencies)
|
deps = command.get_dependencies(recompute=recompute, global_dependencies=global_dependencies)
|
||||||
dependencies.extend(deps)
|
dependencies.extend(deps)
|
||||||
|
|
||||||
self.dependencies = dependencies
|
self.dependencies = dependencies
|
||||||
return self.dependencies
|
return self.dependencies
|
||||||
|
|
||||||
@ -494,7 +497,8 @@ class NewTextScript:
|
|||||||
return commands
|
return commands
|
||||||
|
|
||||||
def to_asm(self):
|
def to_asm(self):
|
||||||
pass
|
asm_output = "\n".join([command.to_asm() for command in self.commands])
|
||||||
|
return asm_output
|
||||||
|
|
||||||
all_texts = []
|
all_texts = []
|
||||||
class TextScript:
|
class TextScript:
|
||||||
|
Loading…
Reference in New Issue
Block a user