Ignore console calls in dev stdout

This commit is contained in:
LoafyLemon 2024-05-14 15:07:18 +01:00
parent 978be68399
commit 3745fb46e9
1 changed files with 4 additions and 1 deletions

View File

@ -216,10 +216,13 @@ default _last_label = None
python early:
def catch_label_call(label, abnormal):
if config.developer:
ignore = ["_console", "_console_return"]
# last_label = renpy.game.context().come_from_label <- Doesn't work as expected, other methods are just as unreliable.
# from '{stdcol.PURPLE}{last_label}{stdcol.END}'
caller_id = renpy.get_filename_line()
print(f"Reached '{stdcol.PURPLE}{label}{stdcol.END}' caller '{stdcol.BLUE}{caller_id}{stdcol.END}'...")
if not label in ignore:
print(f"Reached '{stdcol.PURPLE}{label}{stdcol.END}' caller '{stdcol.BLUE}{caller_id}{stdcol.END}'...")
setattr(store, "_last_label", label)