Ignore console calls in dev stdout
This commit is contained in:
parent
978be68399
commit
3745fb46e9
@ -216,9 +216,12 @@ default _last_label = None
|
|||||||
python early:
|
python early:
|
||||||
def catch_label_call(label, abnormal):
|
def catch_label_call(label, abnormal):
|
||||||
if config.developer:
|
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.
|
# 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}'
|
# from '{stdcol.PURPLE}{last_label}{stdcol.END}'
|
||||||
caller_id = renpy.get_filename_line()
|
caller_id = renpy.get_filename_line()
|
||||||
|
|
||||||
|
if not label in ignore:
|
||||||
print(f"Reached '{stdcol.PURPLE}{label}{stdcol.END}' caller '{stdcol.BLUE}{caller_id}{stdcol.END}'...")
|
print(f"Reached '{stdcol.PURPLE}{label}{stdcol.END}' caller '{stdcol.BLUE}{caller_id}{stdcol.END}'...")
|
||||||
|
|
||||||
setattr(store, "_last_label", label)
|
setattr(store, "_last_label", label)
|
||||||
|
Loading…
Reference in New Issue
Block a user