Skip to content

Commit

Permalink
Print trophies and event matches in Ninja build (#1279)
Browse files Browse the repository at this point in the history
  • Loading branch information
ribbanya authored Feb 21, 2024
1 parent 69d908e commit 1683307
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@
# "-listclosure", # Uncomment for Wii linkers
]

# Progress
config.progress_use_fancy = True
config.progress_code_fancy_frac = 51
config.progress_code_fancy_item = "Trophies"
config.progress_data_fancy_frac = 293
config.progress_data_fancy_item = "Event Matches"

# Base flags, common to most GC/Wii games.
# Generally leave untouched, with overrides added below.
cflags_base = [
Expand Down
2 changes: 1 addition & 1 deletion tools/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,7 +1012,7 @@ def print_category(unit: Optional[ProgressUnit]) -> None:
print(f" Data: {unit.data_progress} / {unit.data_total} bytes")
if config.progress_use_fancy:
print(
"\nYou have {} out of {} {} and collected {} out of {} {}.".format(
"\nYou have {} of {} {} and completed {} of {} {}.".format(
math.floor(code_frac * unit.code_fancy_frac),
unit.code_fancy_frac,
unit.code_fancy_item,
Expand Down

0 comments on commit 1683307

Please sign in to comment.