mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
rename textpre.py -> preprocessor.py
This commit is contained in:
parent
092baabdd4
commit
849c0d132d
2
Makefile
2
Makefile
@ -8,7 +8,7 @@ pokecrystal.o: pokecrystal.asm main.tx constants.asm wram.asm ${TEXTFILES}
|
|||||||
rgbasm -o pokecrystal.o pokecrystal.asm
|
rgbasm -o pokecrystal.o pokecrystal.asm
|
||||||
|
|
||||||
.asm.tx:
|
.asm.tx:
|
||||||
python textpre.py < $< > $@
|
python preprocessor.py < $< > $@
|
||||||
|
|
||||||
pokecrystal.gbc: pokecrystal.o
|
pokecrystal.gbc: pokecrystal.o
|
||||||
rgblink -o $@ $<
|
rgblink -o $@ $<
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from copy import copy
|
from copy import copy
|
||||||
|
|
||||||
#this is straight out of ../textpre.py because i'm lazy
|
# this is straight out of ../preprocessor.py because i'm lazy
|
||||||
|
# (also, it's flipped)
|
||||||
# see jap_chars for overrides if you are in japanese mode?
|
# see jap_chars for overrides if you are in japanese mode?
|
||||||
chars = {
|
chars = {
|
||||||
0x50: "@",
|
0x50: "@",
|
||||||
|
@ -900,7 +900,7 @@ def find_text_addresses():
|
|||||||
|
|
||||||
class EncodedText:
|
class EncodedText:
|
||||||
"""a sequence of bytes that, when decoded, represent readable text
|
"""a sequence of bytes that, when decoded, represent readable text
|
||||||
based on the chars table from textpre.py and other places"""
|
based on the chars table from preprocessor.py and other places"""
|
||||||
base_label = "UnknownRawText_"
|
base_label = "UnknownRawText_"
|
||||||
|
|
||||||
def __init__(self, address, bank=None, map_group=None, map_id=None, debug=True, label=None):
|
def __init__(self, address, bank=None, map_group=None, map_id=None, debug=True, label=None):
|
||||||
|
Loading…
Reference in New Issue
Block a user