Merge pull request #587 from Rangi42/master

Remove dependency on 'extras' submodule
This commit is contained in:
Rangi 2018-12-31 18:26:33 -05:00 committed by GitHub
commit 9f82304186
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 4187 additions and 19 deletions

3
.gitmodules vendored
View File

@ -1,3 +0,0 @@
[submodule "extras"]
path = extras
url = git://github.com/pret/pokemon-reverse-engineering-tools.git

View File

@ -1,15 +1,3 @@
ifeq (,$(shell which sha1sum))
SHA1 := shasum
else
SHA1 := sha1sum
endif
RGBDS ?=
RGBASM ?= $(RGBDS)rgbasm
RGBFIX ?= $(RGBDS)rgbfix
RGBGFX ?= $(RGBDS)rgbgfx
RGBLINK ?= $(RGBDS)rgblink
roms := pokecrystal.gbc pokecrystal11.gbc
crystal_obj := \
@ -31,10 +19,25 @@ lib/mobile/main.o
crystal11_obj := $(crystal_obj:.o=11.o)
### Build tools
ifeq (,$(shell which sha1sum))
SHA1 := shasum
else
SHA1 := sha1sum
endif
RGBDS ?=
RGBASM ?= $(RGBDS)rgbasm
RGBFIX ?= $(RGBDS)rgbfix
RGBGFX ?= $(RGBDS)rgbgfx
RGBLINK ?= $(RGBDS)rgblink
### Build targets
.SUFFIXES:
.PHONY: all crystal crystal11 clean compare tools tidy
.PHONY: all crystal crystal11 clean tidy compare tools
.SECONDEXPANSION:
.PRECIOUS:
.SECONDARY:

1
extras

@ -1 +0,0 @@
Subproject commit 2ae1ae2f19c842da965cd3db1b0da8bf108ac235

View File

@ -3,7 +3,7 @@
import os
import argparse
from extras.pokemontools import gfx, lz
from pokemontools import gfx, lz
# Graphics with inverted tilemaps that aren't covered by filepath_rules.
@ -146,7 +146,7 @@ def filepath_rules(filepath):
pokemon_name = ''
if 'gfx/pics/' in filedir:
if 'gfx/pokemon/' in filedir:
pokemon_name = filedir.split('/')[-1]
if pokemon_name.startswith('unown_'):
index = filedir.find(pokemon_name)

View File

@ -0,0 +1 @@
# A subset of https://github.com/pret/pokemon-reverse-engineering-tools

938
tools/pokemontools/gfx.py Normal file

File diff suppressed because it is too large Load Diff

580
tools/pokemontools/lz.py Normal file

File diff suppressed because it is too large Load Diff

2650
tools/pokemontools/png.py Normal file

File diff suppressed because it is too large Load Diff