From e6b5b033a52f2f9a6bea0840bb37ae4719dcdf30 Mon Sep 17 00:00:00 2001 From: Ethan Roseman Date: Thu, 20 Jul 2023 15:18:25 +0900 Subject: [PATCH] bump pigment to 0.3.0 --- tools/build/configure.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tools/build/configure.py b/tools/build/configure.py index 4e386a10a0..2ac03252dd 100755 --- a/tools/build/configure.py +++ b/tools/build/configure.py @@ -24,7 +24,7 @@ YAY0_COMPRESS_TOOL = f"{BUILD_TOOLS}/yay0/Yay0compress" CRC_TOOL = f"{BUILD_TOOLS}/rom/n64crc" PIGMENT = "pigment64" -PIGMENT_REQ_VERSION = "0.2.2" +PIGMENT_REQ_VERSION = "0.3.0" def exec_shell(command: List[str]) -> str: @@ -207,7 +207,7 @@ def write_ninja_rules( ninja.rule( "pigment", description="img($img_type) $in", - command=f"{PIGMENT} $img_flags $in $img_type -o $out", + command=f"{PIGMENT} to-bin $img_flags -f $img_type -o $out $in", ) ninja.rule( @@ -596,7 +596,9 @@ class Configure: encoding = "EUC-JP" # Dead cod - if isinstance(seg.parent.yaml, dict) and seg.parent.yaml.get("dead_code", False): + if isinstance(seg.parent.yaml, dict) and seg.parent.yaml.get( + "dead_code", False + ): obj_path = str(entry.object_path) init_obj_path = Path(obj_path + ".dead") build(