summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pokemontools/crystal.py10
-rw-r--r--pokemontools/crystalparts/__init__.py0
-rw-r--r--pokemontools/crystalparts/asmline.py8
3 files changed, 10 insertions, 8 deletions
diff --git a/pokemontools/crystal.py b/pokemontools/crystal.py
index 8a12dad..a3d87f0 100644
--- a/pokemontools/crystal.py
+++ b/pokemontools/crystal.py
@@ -7022,14 +7022,8 @@ def apply_diff(diff, try_fixing=True, do_compile=True):
os.system("mv ../main1.asm ../main.asm")
return False
-class AsmLine:
- # TODO: parse label lines
- def __init__(self, line, bank=None):
- self.line = line
- self.bank = bank
-
- def to_asm(self):
- return self.line
+import crystalparts.asmline
+AsmLine = crystalparts.asmline.AsmLine
class Incbin:
def __init__(self, line, bank=None, debug=False):
diff --git a/pokemontools/crystalparts/__init__.py b/pokemontools/crystalparts/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/pokemontools/crystalparts/__init__.py
diff --git a/pokemontools/crystalparts/asmline.py b/pokemontools/crystalparts/asmline.py
new file mode 100644
index 0000000..e62d774
--- /dev/null
+++ b/pokemontools/crystalparts/asmline.py
@@ -0,0 +1,8 @@
+class AsmLine:
+ # TODO: parse label lines
+ def __init__(self, line, bank=None):
+ self.line = line
+ self.bank = bank
+
+ def to_asm(self):
+ return self.line