Mesen-SX/Docs/content/apireference/Logging.md
2020-06-30 16:51:13 -04:00

609 B

title weight pre chapter
Logging 25 false

displayMessage

Syntax

emu.displayMessage(category, text)

Parameters
category - String The category is the portion shown between brackets []
text - String Text to show on the screen

Return value
None

Description
Displays a message on the main window in the format "[category] text"

log

Syntax

emu.log(text)

Parameters
text - String Text to log

Return value
None

Description
Logs the given string in the script's log window - useful for debugging scripts.