From e84a5b2062ff5e9b010447e3a3c78dd67a653166 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 1 Sep 2013 02:27:44 -0500 Subject: make extras/ a submodule Use pokemontools v1.3.0 and use the same preprocessor as the pokecrystal project. --- extras | 1 + extras/romviz.py | 40 ---------------------------------------- 2 files changed, 1 insertion(+), 40 deletions(-) create mode 160000 extras delete mode 100644 extras/romviz.py (limited to 'extras/romviz.py') diff --git a/extras b/extras new file mode 160000 index 00000000..795cd58a --- /dev/null +++ b/extras @@ -0,0 +1 @@ +Subproject commit 795cd58a70c80082003e40127241cfaefa0fae8b diff --git a/extras/romviz.py b/extras/romviz.py deleted file mode 100644 index 3f07d65e..00000000 --- a/extras/romviz.py +++ /dev/null @@ -1,40 +0,0 @@ -#author: Bryan Bishop -#date: 2012-01-10 -#show me an image -import Image -from math import floor -import extract_maps -import analyze_incbins - -print "loading rom.." -extract_maps.load_rom() -#extract_maps.load_map_pointers() -#extract_maps.read_all_map_headers() - -print "analyzing incbins.." -analyze_incbins.load_asm() -analyze_incbins.isolate_incbins() -analyze_incbins.process_incbins() - -width = 1024 -height = 1024 - -im = Image.new("P", (width, height), 0) - -im.putpalette([ - 0, 0, 0, - 126, 30, 156, -]) - -print "drawing incbins..." -for incbin_key in analyze_incbins.processed_incbins: - incbin = analyze_incbins.processed_incbins[incbin_key] - start = incbin["start"] - end = incbin["end"] - - for pos in range(start, end+1): - widthx = int(pos % width) - heighty = int(floor(pos / height)) - im.putpixel((widthx, heighty), 1) - -im.save("test.png") -- cgit v1.2.3 From 423c9ef70b49c2786b9f708b32364800cda45e79 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sun, 1 Sep 2013 16:26:26 -0500 Subject: bump submodule to get a gbz80disasm fix --- extras | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/romviz.py') diff --git a/extras b/extras index 795cd58a..7aa016fb 160000 --- a/extras +++ b/extras @@ -1 +1 @@ -Subproject commit 795cd58a70c80082003e40127241cfaefa0fae8b +Subproject commit 7aa016fb528bcc8dcb30c6a887957851623eccc0 -- cgit v1.2.3