OpenTTD Source
12.0-beta2
|
Go to the documentation of this file.
35 virtual char *
LogOSVersion(
char *buffer,
const char *last)
const = 0;
43 virtual char *
LogCompiler(
char *buffer,
const char *last)
const;
52 virtual char *
LogError(
char *buffer,
const char *last,
const char *
message)
const = 0;
61 virtual char *
LogStacktrace(
char *buffer,
const char *last)
const = 0;
70 virtual char *
LogRegisters(
char *buffer,
const char *last)
const;
79 virtual char *
LogModules(
char *buffer,
const char *last)
const;
84 char *
LogLibraries(
char *buffer,
const char *last)
const;
85 char *
LogGamelog(
char *buffer,
const char *last)
const;
92 char *
FillCrashLog(
char *buffer,
const char *last)
const;
93 bool WriteCrashLog(
const char *buffer,
char *filename,
const char *filename_last)
const;
104 virtual int WriteCrashDump(
char *filename,
const char *filename_last)
const;
105 bool WriteSavegame(
char *filename,
const char *filename_last)
const;
char * LogLibraries(char *buffer, const char *last) const
Writes information (versions) of the used libraries.
bool MakeCrashLog() const
Makes the crash log, writes it to a file and then subsequently tries to make a crash dump and crash s...
static void AfterCrashLogCleanup()
Try to close the sound/video stuff so it doesn't keep lingering around incorrect video states or so,...
bool WriteScreenshot(char *filename, const char *filename_last) const
Write the (crash) screenshot to a file.
char * LogConfiguration(char *buffer, const char *last) const
Writes the (important) configuration settings to the buffer.
char * LogOpenTTDVersion(char *buffer, const char *last) const
Writes OpenTTD's version to the buffer.
virtual char * LogOSVersion(char *buffer, const char *last) const =0
Writes OS' version to the buffer.
static char * gamelog_buffer
Temporary 'local' location of the buffer.
char * LogGamelog(char *buffer, const char *last) const
Writes the gamelog data to the buffer.
virtual char * LogModules(char *buffer, const char *last) const
Writes the dynamically linked libraries/modules to the buffer, if there is information about it avail...
char * LogRecentNews(char *buffer, const char *list) const
Writes up to 32 recent news messages to the buffer, with the most recent first.
static void InitThread()
Prepare crash log handler for a newly started thread.
static void SetErrorMessage(const char *message)
Sets a message for the error message handler.
virtual ~CrashLog()
Stub destructor to silence some compilers.
static const char * message
Pointer to the error message.
Helper class for creating crash logs.
virtual char * LogRegisters(char *buffer, const char *last) const
Writes information about the data in the registers, if there is information about it available.
virtual int WriteCrashDump(char *filename, const char *filename_last) const
Write the (crash) dump to a file.
virtual char * LogError(char *buffer, const char *last, const char *message) const =0
Writes actually encountered error to the buffer.
virtual char * LogCompiler(char *buffer, const char *last) const
Writes compiler (and its version, if available) to the buffer.
static void InitialiseCrashLog()
Initialiser for crash logs; do the appropriate things so crashes are handled by our crash handler ins...
static void GamelogFillCrashLog(const char *s)
Helper function for printing the gamelog.
bool WriteSavegame(char *filename, const char *filename_last) const
Write the (crash) savegame to a file.
static const char * gamelog_last
Temporary 'local' location of the end of the buffer.
char * FillCrashLog(char *buffer, const char *last) const
Fill the crash log buffer with all data of a crash log.
bool WriteCrashLog(const char *buffer, char *filename, const char *filename_last) const
Write the crash log to a file.
virtual char * LogStacktrace(char *buffer, const char *last) const =0
Writes the stack trace to the buffer, if there is information about it available.