summaryrefslogtreecommitdiff
path: root/src/crashlog.h
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-11-17 23:12:42 +0000
committersmatz <smatz@openttd.org>2009-11-17 23:12:42 +0000
commit5924863a49e940e4dd5c2b74c60de9edd67a4187 (patch)
treed1c8a205b7d08236d31b32f660ca3dc4259b9afe /src/crashlog.h
parent4eaa558ca119936483c55daf232ece37496eddb4 (diff)
downloadopenttd-5924863a49e940e4dd5c2b74c60de9edd67a4187.tar.xz
(svn r18156) -Add: crash screenshot, created from blitter buffer
Diffstat (limited to 'src/crashlog.h')
-rw-r--r--src/crashlog.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/crashlog.h b/src/crashlog.h
index b6fe2d458..5bc48dd3b 100644
--- a/src/crashlog.h
+++ b/src/crashlog.h
@@ -155,6 +155,16 @@ public:
bool WriteSavegame(char *filename, const char *filename_last) const;
/**
+ * Write the (crash) screenshot to a file.
+ * @note On success the filename will be filled with the full path of the
+ * screenshot. Make sure filename is at least \c MAX_PATH big.
+ * @param filename Output for the filename of the written file.
+ * @param filename_last The last position in the filename buffer.
+ * @return true when the crash screenshot was successfully made.
+ */
+ bool WriteScreenshot(char *filename, const char *filename_last) const;
+
+ /**
* Makes the crash log, writes it to a file and then subsequently tries
* to make a crash dump and crash savegame. It uses DEBUG to write
* information like paths to the console.