8#ifdef VIDEO_STANDARD_PAL
44 void Print(
const char *pszText)
override;
46#ifdef VIDEO_STANDARD_PAL
57 void OpenLog(
const char *pszFile,
bool bAppend);
98 mModalCallback = pfnCallback;
103 return mModalCallback;
110#ifdef VIDEO_STANDARD_PAL
111 std::unique_ptr<File>
mLog;
113 std::unique_ptr<BinStream>
mLog;
Stream for diagnostic text, written to standard output or to a log file.
Definition debug.h:18
void(* ModalCallback)(int *pState, const char *pszMessage)
Routine that shows a message on the screen and waits for the player.
Definition debug.h:90
FileStream * mLog
Definition Debug.h:103
void Print(const char *pszText) override
Write diagnostic text, to the log file with each newline as a carriage return and a line feed,...
Debug()
Construct an enabled stream with no log file.
bool mEnabled
Definition Debug.h:102
ModalCallbackFunc mModalCallback
Definition Debug.h:104
void SetModalCallback(ModalCallback pfnCallback)
Set the routine that shows a message on the screen.
Definition debug.h:97
~Debug() override
Close the log file and release the stream.
ModalCallback GetModalCallback() const
Definition debug.h:102
void CloseLog()
Close the log file, if any.
void OpenLog(const char *pszFile)
Write the text to a log file from now on, replacing any log file.
PrnStream()
Construct a stream with a dump level of 0.
Definition prnstream.h:23
void DebugError(const char *pszFormat,...)
Format an error that the shipped build discards.
void DebugWarn(const char *pszFormat,...)
Format a warning that the shipped build discards.
void DebugNotify(const char *pszFormat,...)
Format a notice that the shipped build discards.
void DebugPrint(const char *pszFormat,...)
Format a diagnostic message that the shipped build discards.
Debug TheDebug
The diagnostic stream.