From 6d28e4193b5609f520932605f94baf348aae5783 Mon Sep 17 00:00:00 2001 From: Gwilym Inzani Date: Sat, 8 Apr 2023 21:10:47 +0100 Subject: [PATCH] Replace objcopy + gbafix to use our own gbafix --- justfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index d901cce2..1c56a933 100644 --- a/justfile +++ b/justfile @@ -105,11 +105,13 @@ _build-rom folder name: mkdir -p examples/target/examples - arm-none-eabi-objcopy -O binary "$TARGET_FOLDER/thumbv4t-none-eabi/release/$GAME_NAME" "$GBA_FILE" - gbafix -p "-t${INTERNAL_NAME:0:12}" "-c${INTERNAL_NAME:0:4}" -mGC "$GBA_FILE" + just _gbafix --title "${INTERNAL_NAME:0:12}" --gamecode "${INTERNAL_NAME:0:4}" "$TARGET_FOLDER/thumbv4t-none-eabi/release/$GAME_NAME" -o "$GBA_FILE" cp -v "$GBA_FILE" "examples/target/examples/$GAME_NAME.gba" +_gbafix +args: + (cd agb-gbafix && cargo run --release -- {{args}}) + _all-crates target: for CARGO_PROJECT_FILE in agb-*/Cargo.toml agb/Cargo.toml; do \ PROJECT_DIR=$(dirname "$CARGO_PROJECT_FILE"); \