mirror of https://github.com/zeldaret/tmc.git
Add asset extraction to Makefile
This commit is contained in:
parent
a868ae7228
commit
bb8429933e
|
@ -66,3 +66,4 @@ _Deparsed_XSubs.pm
|
||||||
*.sna
|
*.sna
|
||||||
__pycache__
|
__pycache__
|
||||||
.vscode/settings.json
|
.vscode/settings.json
|
||||||
|
assets/
|
13
INSTALL.md
13
INSTALL.md
|
@ -1,18 +1,11 @@
|
||||||
# Install
|
# Install
|
||||||
First, you must put a The Legend of Zelda: The Minish Cap (U) ROM (with SHA1: `b4bd50e4131b027c334547b4524e2dbbd4227130`) in the root directory of the repository and name it `baserom.gba`.
|
First, you must put a The Legend of Zelda: The Minish Cap (U) ROM (with SHA1: `b4bd50e4131b027c334547b4524e2dbbd4227130`) in the root directory of the repository and name it `baserom.gba`.
|
||||||
|
|
||||||
|
## Extract assets
|
||||||
|
Run `python tools/asset_extractor/asset_extractor.py usa`.
|
||||||
|
|
||||||
## Building other variants
|
## Building other variants
|
||||||
To build other variants, you currently need a combination of different baseroms, depending on the variant.
|
To build other variants, you need to place the corresponding baserom and then extract the assets, e.g. for JP: `baserom_jp.gba` and run `python tools/asset_extractor/asset_extractor.py jp`.
|
||||||
| | USA | JP | EU | DEMO_USA | DEMO_JP |
|
|
||||||
| - | :-: | :-: | :-: | :-: | :-: |
|
|
||||||
| baserom.gba | X | X | X | X | X |
|
|
||||||
| baserom_jp.gba | | X | X | | X |
|
|
||||||
| baserom_eu.gba | | | X | | |
|
|
||||||
| baserom_demo.gba | | | | X | |
|
|
||||||
| baserom_demo_jp.gba | | | | | X |
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
|
|
29
Makefile
29
Makefile
|
@ -185,6 +185,7 @@ include songs.mk
|
||||||
%.png: ;
|
%.png: ;
|
||||||
%.pal: ;
|
%.pal: ;
|
||||||
%.aif: ;
|
%.aif: ;
|
||||||
|
%.bin: ;
|
||||||
|
|
||||||
%.1bpp: %.png ; $(GFX) $< $@
|
%.1bpp: %.png ; $(GFX) $< $@
|
||||||
%.4bpp: %.png ; $(GFX) $< $@
|
%.4bpp: %.png ; $(GFX) $< $@
|
||||||
|
@ -262,44 +263,38 @@ baserom_eu.gba:
|
||||||
baserom_demo_jp.gba:
|
baserom_demo_jp.gba:
|
||||||
endif
|
endif
|
||||||
ifeq ($(GAME_VERSION), DEMO_USA)
|
ifeq ($(GAME_VERSION), DEMO_USA)
|
||||||
baserom.gba:
|
|
||||||
$(error "You need to provide a USA ROM as baserom.gba")
|
|
||||||
baserom_demo.gba:
|
baserom_demo.gba:
|
||||||
$(error "You need to provide a DEMO ROM as baserom_demo.gba")
|
$(error "You need to provide a DEMO ROM as baserom_demo.gba")
|
||||||
.PHONY: baserom_jp.gba baserom_eu.gba baserom_demo_jp.gba
|
.PHONY: baserom_jp.gba baserom_eu.gba baserom.gba baserom_demo_jp.gba
|
||||||
|
baserom.gba:
|
||||||
baserom_jp.gba:
|
baserom_jp.gba:
|
||||||
baserom_eu.gba:
|
baserom_eu.gba:
|
||||||
baserom_demo_jp.gba:
|
baserom_demo_jp.gba:
|
||||||
endif
|
endif
|
||||||
ifeq ($(GAME_VERSION), JP)
|
ifeq ($(GAME_VERSION), JP)
|
||||||
baserom.gba:
|
|
||||||
$(error "You need to provide a USA ROM as baserom.gba")
|
|
||||||
baserom_jp.gba:
|
baserom_jp.gba:
|
||||||
$(error "You need to provide a JP ROM as baserom_jp.gba")
|
$(error "You need to provide a JP ROM as baserom_jp.gba")
|
||||||
.PHONY: baserom_demo.gba baserom_eu.gba baserom_demo_jp.gba
|
.PHONY: baserom_demo.gba baserom_eu.gba baserom.gba baserom_demo_jp.gba
|
||||||
|
baserom.gba:
|
||||||
baserom_demo.gba:
|
baserom_demo.gba:
|
||||||
baserom_eu.gba:
|
baserom_eu.gba:
|
||||||
baserom_demo_jp.gba:
|
baserom_demo_jp.gba:
|
||||||
endif
|
endif
|
||||||
ifeq ($(GAME_VERSION), DEMO_JP)
|
ifeq ($(GAME_VERSION), DEMO_JP)
|
||||||
baserom.gba:
|
|
||||||
$(error "You need to provide a USA ROM as baserom.gba")
|
|
||||||
baserom_jp.gba:
|
|
||||||
$(error "You need to provide a JP ROM as baserom_jp.gba")
|
|
||||||
baserom_demo_jp.gba:
|
baserom_demo_jp.gba:
|
||||||
$(error "You need to provide a DEMO JP ROM as baserom_demo_jp.gba")
|
$(error "You need to provide a DEMO JP ROM as baserom_demo_jp.gba")
|
||||||
.PHONY: baserom_demo.gba baserom_eu.gba
|
.PHONY: baserom_jp.gba baserom_eu.gba baserom.gba baserom_demo.gba
|
||||||
baserom_demo.gba:
|
baserom.gba:
|
||||||
|
baserom_jp.gba:
|
||||||
baserom_eu.gba:
|
baserom_eu.gba:
|
||||||
|
baserom_demo.gba:
|
||||||
endif
|
endif
|
||||||
ifeq ($(GAME_VERSION), EU)
|
ifeq ($(GAME_VERSION), EU)
|
||||||
baserom.gba:
|
|
||||||
$(error "You need to provide a USA ROM as baserom.gba")
|
|
||||||
baserom_jp.gba:
|
|
||||||
$(error "You need to provide a JP ROM as baserom_jp.gba")
|
|
||||||
baserom_eu.gba:
|
baserom_eu.gba:
|
||||||
$(error "You need to provide a EU ROM as baserom_eu.gba")
|
$(error "You need to provide a EU ROM as baserom_eu.gba")
|
||||||
.PHONY: baserom_demo.gba baserom_demo_jp.gba
|
.PHONY: baserom_demo.gba baserom.gba baserom_jp.gba baserom_demo_jp.gba
|
||||||
|
baserom.gba:
|
||||||
|
baserom_jp.gba:
|
||||||
baserom_demo.gba:
|
baserom_demo.gba:
|
||||||
baserom_demo_jp.gba:
|
baserom_demo_jp.gba:
|
||||||
endif
|
endif
|
||||||
|
|
Loading…
Reference in New Issue