From 849c0d132d9a9a9b2414d5914f41a83820be8b11 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Thu, 26 Apr 2012 16:58:20 -0500 Subject: [PATCH] rename textpre.py -> preprocessor.py --- Makefile | 2 +- extras/chars.py | 5 +++-- extras/crystal.py | 2 +- textpre.py => preprocessor.py | 0 4 files changed, 5 insertions(+), 4 deletions(-) rename textpre.py => preprocessor.py (100%) diff --git a/Makefile b/Makefile index 25222ce9c..631cf4722 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ pokecrystal.o: pokecrystal.asm main.tx constants.asm wram.asm ${TEXTFILES} rgbasm -o pokecrystal.o pokecrystal.asm .asm.tx: - python textpre.py < $< > $@ + python preprocessor.py < $< > $@ pokecrystal.gbc: pokecrystal.o rgblink -o $@ $< diff --git a/extras/chars.py b/extras/chars.py index 3af83e7fa..28f37cb84 100644 --- a/extras/chars.py +++ b/extras/chars.py @@ -1,8 +1,9 @@ # -*- coding: utf-8 -*- from copy import copy -#this is straight out of ../textpre.py because i'm lazy -#see jap_chars for overrides if you are in japanese mode? +# 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? chars = { 0x50: "@", 0x54: "#", diff --git a/extras/crystal.py b/extras/crystal.py index 8f3487b15..08e0564ea 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -900,7 +900,7 @@ def find_text_addresses(): class EncodedText: """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_" def __init__(self, address, bank=None, map_group=None, map_id=None, debug=True, label=None): diff --git a/textpre.py b/preprocessor.py similarity index 100% rename from textpre.py rename to preprocessor.py