diff --git a/Makefile b/Makefile index 2feeb453..dd099884 100644 --- a/Makefile +++ b/Makefile @@ -31,7 +31,7 @@ build: .PHONY: pkg-gba pkg-gba: $(foreach file, $(wildcard build/*), cmake --build $(file) --target install;) - ${ENV_RUN} ./scripts/gba-pkg + ${ENV_RUN} ./scripts/gba-pkg sample_project .PHONY: install install: $(foreach file, $(wildcard build/*), cmake --build $(file) --target install;) diff --git a/scripts/gba-pkg b/scripts/gba-pkg index b00f9bf9..0c49a025 100755 --- a/scripts/gba-pkg +++ b/scripts/gba-pkg @@ -6,7 +6,7 @@ BIN=./dist/$(cat .current_build)/bin/ PATH=$BIN:${DEVKITPRO}/tools/bin/:${DEVKITARM}/bin/:$PATH NOSTALGIA_BIN=build/gba-*/src/nostalgia/player/nostalgia.bin NOSTALGIA_MEDIA=nostalgia_media.oxfs -NOSTALGIA_PROJECT=sample_project +NOSTALGIA_PROJECT=$1 NOSTALGIA_GBA=nostalgia.gba MEDIA_HEADER=media_header.txt