Skip to content

Commit 1683307

Browse files
authored
Print trophies and event matches in Ninja build (#1279)
1 parent 69d908e commit 1683307

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

configure.py

+7
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@
161161
# "-listclosure", # Uncomment for Wii linkers
162162
]
163163

164+
# Progress
165+
config.progress_use_fancy = True
166+
config.progress_code_fancy_frac = 51
167+
config.progress_code_fancy_item = "Trophies"
168+
config.progress_data_fancy_frac = 293
169+
config.progress_data_fancy_item = "Event Matches"
170+
164171
# Base flags, common to most GC/Wii games.
165172
# Generally leave untouched, with overrides added below.
166173
cflags_base = [

tools/project.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ def print_category(unit: Optional[ProgressUnit]) -> None:
10121012
print(f" Data: {unit.data_progress} / {unit.data_total} bytes")
10131013
if config.progress_use_fancy:
10141014
print(
1015-
"\nYou have {} out of {} {} and collected {} out of {} {}.".format(
1015+
"\nYou have {} of {} {} and completed {} of {} {}.".format(
10161016
math.floor(code_frac * unit.code_fancy_frac),
10171017
unit.code_fancy_frac,
10181018
unit.code_fancy_item,

0 commit comments

Comments
 (0)