Commit Graph

709 Commits

Author SHA1 Message Date
Bryan Bishop
5b02c020f4 make wram.py use config for paths
The WRAMProcessor class handles reading all constants and labels, which
are then used in gbz80disasm.
2013-09-02 12:33:03 -05:00
Bryan Bishop
2cf0cfa34d class Preprocessor instead of just functions 2013-09-02 12:33:03 -05:00
Bryan Bishop
6f9ed6a829 basic config support 2013-09-02 12:33:03 -05:00
Bryan Bishop
672d527f9e Merge pull request #9 from kanzure/fix-get_labels_between
Fix "labels" confusion in get_labels_between
2013-09-02 10:30:57 -07:00
Bryan Bishop
580f006a80 fix "labels" confusion in get_labels_between
There was both the labels module and a list called labels. Rename the
local variable to foundlabels instead.
2013-09-02 12:27:58 -05:00
Bryan Bishop
49a51a093c Merge pull request #8 from kanzure/september-cleanup
Minor wram.py fix
2013-09-01 20:20:30 -07:00
Bryan Bishop
021ecb1124 make_wram_labels doesn't need globals now 2013-09-01 22:08:35 -05:00
Bryan Bishop
20ac842b6a Merge branch 'master' into september-cleanup 2013-09-01 22:08:20 -05:00
Bryan Bishop
2e6d805aea Merge pull request #7 from kanzure/september-cleanup
python cleanup
2013-09-01 19:34:50 -07:00
Bryan Bishop
52d4978974 move the map_names import to the top
Maybe it will get more attention up here. It needs to be cleaned up
since it's a global used throughout the source code, plus it gets
modified multiple times everywhere. Awful.
2013-09-01 16:42:05 -05:00
Bryan Bishop
43c912b4ee remove a useless comment from pokered gbz80disasm
What were these doing here, anyway?
2013-09-01 16:38:28 -05:00
Bryan Bishop
2a951be35c better ordering of imports in crystal.py 2013-09-01 16:34:17 -05:00
Bryan Bishop
acf23488e8 better docstrings in helpers.py 2013-09-01 16:31:55 -05:00
Bryan Bishop
5385ccd6d7 Merge branch 'master' into september-cleanup 2013-09-01 16:30:16 -05:00
Bryan Bishop
7aa016fb52 Merge pull request #4 from kanzure/fix-analyze-incbins
Apply pokered changes from 'fix-analyze-incbins'
2013-09-01 14:25:34 -07:00
Bryan Bishop
673555a75e apply pokered changes from 'fix-analyze-incbins'
This helps to fix (pokered) gbz80disasm. These two disassemblers need to
be merged together as soon as possible.
2013-09-01 16:22:46 -05:00
Bryan Bishop
018f7cb540 fix tab in red gbz80disasm 2013-09-01 16:13:06 -05:00
Bryan Bishop
24c5bdfd83 minor gbz80disasm formatting 2013-09-01 16:10:32 -05:00
Bryan Bishop
a8f9bf671b fix syntax on import gbz80disasm 2013-09-01 16:08:26 -05:00
Bryan Bishop
875913eefa make mkdir_p raise a specific exception 2013-09-01 16:05:32 -05:00
Bryan Bishop
5507494a35 move mkdir_p out of gfx.py and into helpers.py
It seems that mkdir_p is unused at the moment.
2013-09-01 16:04:50 -05:00
Bryan Bishop
abd5264a9d import syntax in gfx.py 2013-09-01 16:03:40 -05:00
Bryan Bishop
7b98e21889 docstring for MenuDataPointerParam 2013-09-01 16:01:46 -05:00
Bryan Bishop
a104ed3679 log message for parse_script_asm_at 2013-09-01 15:59:59 -05:00
Bryan Bishop
f666fcb67d move flatten and flattener into helpers 2013-09-01 15:57:02 -05:00
Bryan Bishop
a1d9fd778d fix typo in TrainerGroupTable assert message 2013-09-01 15:49:17 -05:00
Bryan Bishop
5febb07654 use TextScriptException again 2013-09-01 15:46:43 -05:00
Bryan Bishop
e188fa3eb4 make up TextScriptException to replace two asserts 2013-09-01 15:45:04 -05:00
Bryan Bishop
ccc1d82d95 use a custom AddressException instead of asserts
There's no reason to have asserts thrown around in the source code like
that. This replaces some of them with an AddressException and a new file
called "exceptions.py" to store the exception definitions.
2013-09-01 15:40:22 -05:00
Bryan Bishop
74a9f14502 move index and grouper into helpers.py 2013-09-01 15:33:52 -05:00
Bryan Bishop
adb89bb985 improve spacing in Incbin and AsmSection 2013-09-01 15:21:10 -05:00
Bryan Bishop
676f12f573 fix spacing in get_pokemon_constant_by_id 2013-09-01 15:16:48 -05:00
Bryan Bishop
58e8718616 fix import item_constants syntax 2013-09-01 15:16:01 -05:00
Bryan Bishop
48f6b8a8fa fix import wram syntax 2013-09-01 15:14:23 -05:00
Bryan Bishop
e8eaeefda8 fix import pokemon_constants syntax 2013-09-01 15:13:26 -05:00
Bryan Bishop
cc93281530 fix import old_parse_scripts 2013-09-01 15:11:55 -05:00
Bryan Bishop
0b67d453f6 fix "from trainers import .." syntax 2013-09-01 15:08:58 -05:00
Bryan Bishop
f62d266e1a don't need re 2013-09-01 15:02:59 -05:00
Bryan Bishop
ffe1388707 import interval_map syntax 2013-09-01 15:00:53 -05:00
Bryan Bishop
c84a392e46 "import pointers" instead of "from .. import .." 2013-09-01 14:59:33 -05:00
Bryan Bishop
dd52b6900c import move_constants syntax 2013-09-01 14:54:16 -05:00
Bryan Bishop
ea83920d92 "import romstr" instead of "from romstr import .." 2013-09-01 14:51:14 -05:00
Bryan Bishop
f954a57ce4 "import chars" instead of "from chars import .." 2013-09-01 14:46:27 -05:00
Bryan Bishop
7b8e7ba16a move imports together 2013-09-01 14:42:02 -05:00
Bryan Bishop
4bd6505e95 "import pksv" instead of "from pksv import .." 2013-09-01 14:40:41 -05:00
Bryan Bishop
6d7296cbdf import labels instead of "from .. import .." 2013-09-01 14:36:35 -05:00
Bryan Bishop
d9685d76ab don't import remove_quoted_text into crystal.py
This function isn't used in crystal.py, so it can be safely removed from
the imports.
2013-09-01 14:32:59 -05:00
Bryan Bishop
4a00cfac15 make the TestPostParsing test case work again
It needs to be a subclass of unittest.TestCase in order to get any of
the testing methods. Otherwise all of the tests fail when nosetests
finds those tests.
2013-09-01 14:29:31 -05:00
Bryan Bishop
47cde9c915 convert more prints to logging calls 2013-09-01 14:25:14 -05:00
Bryan Bishop
4d9c4ba8a9 use logging in crystal.py instead of print 2013-09-01 13:57:04 -05:00