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
Bryan Bishop
99bf0d326c
docstring for crystal.py
2013-09-01 13:10:27 -05:00
Bryan Bishop
1a30d8b8a2
remove bryan_message for NotImplementedError
...
Nothing was using it.
2013-09-01 13:09:28 -05:00
Bryan Bishop
08241169c5
remove an old comment about __main__ in crystal.py
...
The comment no longer applies.
2013-09-01 13:08:01 -05:00
Bryan Bishop
df820deebc
remove the 'json.read = json.loads' hack
...
There's no good reason to use json.read anymore, even in the case of
jython.
2013-09-01 13:06:29 -05:00
Bryan Bishop
768046bfcd
use an explicit import in labels.py
2013-09-01 13:04:05 -05:00
Bryan Bishop
795cd58a70
version bump to: v1.3.0
2013-09-01 02:16:52 -05:00