Workaround for translations

This commit is contained in:
octorock 2021-09-11 11:03:38 +02:00
parent 0ddca212c8
commit 806e346375
2 changed files with 6 additions and 4 deletions

View File

@ -151,7 +151,7 @@ AUTO_GEN_TARGETS :=
# TODO do we really need this extra step just so that extractassets always runs at first?
all: extractassets
@$(MAKE) target
@$(MAKE) target GAME_VERSION=$(GAME_VERSION)
target: $(ROM)
@$(SHA1) $(BUILD_NAME).sha1
@ -162,7 +162,8 @@ compare: $(ROM)
setup: $(TOOLDIRS)
extractassets:
# TODO temporary workaround to have translation bins as dependencies manually here as scaninc somehow does not work?
extractassets: translations/USA.bin translations/English.bin translations/French.bin translations/German.bin translations/Spanish.bin translations/Italian.bin
python3 tools/asset_extractor/asset_extractor.py $(GAME_VERSION) $(ASSET_BUILDDIR)
$(TOOLDIRS):
@ -194,7 +195,6 @@ include songs.mk
%.png: ;
%.pal: ;
%.aif: ;
%.bin: ;
%.1bpp: %.png ; $(GFX) $< $@
%.4bpp: %.png ; $(GFX) $< $@

View File

@ -94,7 +94,9 @@ int main(int argc, char **argv)
for (auto incbin : file.GetIncbins())
{
// TODO add incbin dependencies in correct folder?
//dependencies.insert(incbin);
if (incbin.rfind("translations", 0) == 0) {
dependencies.insert(incbin);
}
}
for (auto include : file.GetIncludes())
{