mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
faster get_dependencies on Script
This commit is contained in:
parent
34ff5fc4ce
commit
ce35b436ed
@ -2056,10 +2056,13 @@ class Script:
|
||||
return commands
|
||||
|
||||
def get_dependencies(self):
|
||||
if self.dependencies != None:
|
||||
return self.dependencies
|
||||
dependencies = []
|
||||
for command in self.commands:
|
||||
deps = command.get_dependencies()
|
||||
dependencies.extend(deps)
|
||||
self.dependencies = dependencies
|
||||
return dependencies
|
||||
|
||||
def to_asm(self):
|
||||
|
Loading…
Reference in New Issue
Block a user