OpenTTD
crashlog.cpp
Go to the documentation of this file.
1 /* $Id$ */
2 
3 /*
4  * This file is part of OpenTTD.
5  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
6  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
7  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
8  */
9 
12 #include "stdafx.h"
13 #include "crashlog.h"
14 #include "gamelog.h"
15 #include "date_func.h"
16 #include "map_func.h"
17 #include "rev.h"
18 #include "strings_func.h"
19 #include "blitter/factory.hpp"
20 #include "base_media_base.h"
21 #include "music/music_driver.hpp"
22 #include "sound/sound_driver.hpp"
23 #include "video/video_driver.hpp"
24 #include "saveload/saveload.h"
25 #include "screenshot.h"
26 #include "gfx_func.h"
27 #include "network/network.h"
28 #include "language.h"
29 #include "fontcache.h"
30 #include "news_gui.h"
31 
32 #include "ai/ai_info.hpp"
33 #include "game/game.hpp"
34 #include "game/game_info.hpp"
35 #include "company_base.h"
36 #include "company_func.h"
37 
38 #include <time.h>
39 
40 #ifdef WITH_ALLEGRO
41 # include <allegro.h>
42 #endif /* WITH_ALLEGRO */
43 #ifdef WITH_FONTCONFIG
44 # include <fontconfig/fontconfig.h>
45 #endif /* WITH_FONTCONFIG */
46 #ifdef WITH_PNG
47  /* pngconf.h, included by png.h doesn't like something in the
48  * freetype headers. As such it's not alphabetically sorted. */
49 # include <png.h>
50 #endif /* WITH_PNG */
51 #ifdef WITH_FREETYPE
52 # include <ft2build.h>
53 # include FT_FREETYPE_H
54 #endif /* WITH_FREETYPE */
55 #if defined(WITH_ICU_LAYOUT) || defined(WITH_ICU_SORT)
56 # include <unicode/uversion.h>
57 #endif /* WITH_ICU_SORT || WITH_ICU_LAYOUT */
58 #ifdef WITH_LZMA
59 # include <lzma.h>
60 #endif
61 #ifdef WITH_LZO
62 #include <lzo/lzo1x.h>
63 #endif
64 #ifdef WITH_SDL
65 # include "sdl.h"
66 # include <SDL.h>
67 #endif /* WITH_SDL */
68 #ifdef WITH_ZLIB
69 # include <zlib.h>
70 #endif
71 
72 #include "safeguards.h"
73 
74 /* static */ const char *CrashLog::message = NULL;
75 /* static */ char *CrashLog::gamelog_buffer = NULL;
76 /* static */ const char *CrashLog::gamelog_last = NULL;
77 
78 char *CrashLog::LogCompiler(char *buffer, const char *last) const
79 {
80  buffer += seprintf(buffer, last, " Compiler: "
81 #if defined(_MSC_VER)
82  "MSVC %d", _MSC_VER
83 #elif defined(__ICC) && defined(__GNUC__)
84  "ICC %d (GCC %d.%d.%d mode)", __ICC, __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__
85 #elif defined(__ICC)
86  "ICC %d", __ICC
87 #elif defined(__GNUC__)
88  "GCC %d.%d.%d", __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__
89 #elif defined(__WATCOMC__)
90  "WatcomC %d", __WATCOMC__
91 #else
92  "<unknown>"
93 #endif
94  );
95 #if defined(__VERSION__)
96  return buffer + seprintf(buffer, last, " \"" __VERSION__ "\"\n\n");
97 #else
98  return buffer + seprintf(buffer, last, "\n\n");
99 #endif
100 }
101 
102 /* virtual */ char *CrashLog::LogRegisters(char *buffer, const char *last) const
103 {
104  /* Stub implementation; not all OSes support this. */
105  return buffer;
106 }
107 
108 /* virtual */ char *CrashLog::LogModules(char *buffer, const char *last) const
109 {
110  /* Stub implementation; not all OSes support this. */
111  return buffer;
112 }
113 
120 char *CrashLog::LogOpenTTDVersion(char *buffer, const char *last) const
121 {
122  return buffer + seprintf(buffer, last,
123  "OpenTTD version:\n"
124  " Version: %s (%d)\n"
125  " NewGRF ver: %08x\n"
126  " Bits: %d\n"
127  " Endian: %s\n"
128  " Dedicated: %s\n"
129  " Build date: %s\n\n",
130  _openttd_revision,
131  _openttd_revision_modified,
132  _openttd_newgrf_version,
133 #ifdef _SQ64
134  64,
135 #else
136  32,
137 #endif
138 #if (TTD_ENDIAN == TTD_LITTLE_ENDIAN)
139  "little",
140 #else
141  "big",
142 #endif
143 #ifdef DEDICATED
144  "yes",
145 #else
146  "no",
147 #endif
148  _openttd_build_date
149  );
150 }
151 
159 char *CrashLog::LogConfiguration(char *buffer, const char *last) const
160 {
161  buffer += seprintf(buffer, last,
162  "Configuration:\n"
163  " Blitter: %s\n"
164  " Graphics set: %s (%u)\n"
165  " Language: %s\n"
166  " Music driver: %s\n"
167  " Music set: %s (%u)\n"
168  " Network: %s\n"
169  " Sound driver: %s\n"
170  " Sound set: %s (%u)\n"
171  " Video driver: %s\n\n",
173  BaseGraphics::GetUsedSet() == NULL ? "none" : BaseGraphics::GetUsedSet()->name,
174  BaseGraphics::GetUsedSet() == NULL ? UINT32_MAX : BaseGraphics::GetUsedSet()->version,
175  _current_language == NULL ? "none" : _current_language->file,
177  BaseMusic::GetUsedSet() == NULL ? "none" : BaseMusic::GetUsedSet()->name,
178  BaseMusic::GetUsedSet() == NULL ? UINT32_MAX : BaseMusic::GetUsedSet()->version,
179  _networking ? (_network_server ? "server" : "client") : "no",
181  BaseSounds::GetUsedSet() == NULL ? "none" : BaseSounds::GetUsedSet()->name,
182  BaseSounds::GetUsedSet() == NULL ? UINT32_MAX : BaseSounds::GetUsedSet()->version,
184  );
185 
186  buffer += seprintf(buffer, last,
187  "Fonts:\n"
188  " Small: %s\n"
189  " Medium: %s\n"
190  " Large: %s\n"
191  " Mono: %s\n\n",
192  FontCache::Get(FS_SMALL)->GetFontName(),
193  FontCache::Get(FS_NORMAL)->GetFontName(),
194  FontCache::Get(FS_LARGE)->GetFontName(),
195  FontCache::Get(FS_MONO)->GetFontName()
196  );
197 
198  buffer += seprintf(buffer, last, "AI Configuration (local: %i):\n", (int)_local_company);
199  const Company *c;
200  FOR_ALL_COMPANIES(c) {
201  if (c->ai_info == NULL) {
202  buffer += seprintf(buffer, last, " %2i: Human\n", (int)c->index);
203  } else {
204  buffer += seprintf(buffer, last, " %2i: %s (v%d)\n", (int)c->index, c->ai_info->GetName(), c->ai_info->GetVersion());
205  }
206  }
207 
208  if (Game::GetInfo() != NULL) {
209  buffer += seprintf(buffer, last, " GS: %s (v%d)\n", Game::GetInfo()->GetName(), Game::GetInfo()->GetVersion());
210  }
211  buffer += seprintf(buffer, last, "\n");
212 
213  return buffer;
214 }
215 
222 char *CrashLog::LogLibraries(char *buffer, const char *last) const
223 {
224  buffer += seprintf(buffer, last, "Libraries:\n");
225 
226 #ifdef WITH_ALLEGRO
227  buffer += seprintf(buffer, last, " Allegro: %s\n", allegro_id);
228 #endif /* WITH_ALLEGRO */
229 
230 #ifdef WITH_FONTCONFIG
231  int version = FcGetVersion();
232  buffer += seprintf(buffer, last, " FontConfig: %d.%d.%d\n", version / 10000, (version / 100) % 100, version % 100);
233 #endif /* WITH_FONTCONFIG */
234 
235 #ifdef WITH_FREETYPE
236  FT_Library library;
237  int major, minor, patch;
238  FT_Init_FreeType(&library);
239  FT_Library_Version(library, &major, &minor, &patch);
240  FT_Done_FreeType(library);
241  buffer += seprintf(buffer, last, " FreeType: %d.%d.%d\n", major, minor, patch);
242 #endif /* WITH_FREETYPE */
243 
244 #if defined(WITH_ICU_LAYOUT) || defined(WITH_ICU_SORT)
245  /* 4 times 0-255, separated by dots (.) and a trailing '\0' */
246  char buf[4 * 3 + 3 + 1];
247  UVersionInfo ver;
248  u_getVersion(ver);
249  u_versionToString(ver, buf);
250 #ifdef WITH_ICU_SORT
251  buffer += seprintf(buffer, last, " ICU i18n: %s\n", buf);
252 #endif
253 #ifdef WITH_ICU_LAYOUT
254  buffer += seprintf(buffer, last, " ICU lx: %s\n", buf);
255 #endif
256 #endif /* WITH_ICU_SORT || WITH_ICU_LAYOUT */
257 
258 #ifdef WITH_LZMA
259  buffer += seprintf(buffer, last, " LZMA: %s\n", lzma_version_string());
260 #endif
261 
262 #ifdef WITH_LZO
263  buffer += seprintf(buffer, last, " LZO: %s\n", lzo_version_string());
264 #endif
265 
266 #ifdef WITH_PNG
267  buffer += seprintf(buffer, last, " PNG: %s\n", png_get_libpng_ver(NULL));
268 #endif /* WITH_PNG */
269 
270 #ifdef WITH_SDL
271 #ifdef DYNAMICALLY_LOADED_SDL
272  if (SDL_CALL SDL_Linked_Version != NULL) {
273 #else
274  {
275 #endif
276  const SDL_version *v = SDL_CALL SDL_Linked_Version();
277  buffer += seprintf(buffer, last, " SDL: %d.%d.%d\n", v->major, v->minor, v->patch);
278  }
279 #endif /* WITH_SDL */
280 
281 #ifdef WITH_ZLIB
282  buffer += seprintf(buffer, last, " Zlib: %s\n", zlibVersion());
283 #endif
284 
285  buffer += seprintf(buffer, last, "\n");
286  return buffer;
287 }
288 
293 /* static */ void CrashLog::GamelogFillCrashLog(const char *s)
294 {
296 }
297 
304 char *CrashLog::LogGamelog(char *buffer, const char *last) const
305 {
306  CrashLog::gamelog_buffer = buffer;
307  CrashLog::gamelog_last = last;
310 }
311 
318 char *CrashLog::LogRecentNews(char *buffer, const char *last) const
319 {
320  buffer += seprintf(buffer, last, "Recent news messages:\n");
321 
322  for (NewsItem *news = _oldest_news; news != NULL; news = news->next) {
323  YearMonthDay ymd;
324  ConvertDateToYMD(news->date, &ymd);
325  buffer += seprintf(buffer, last, "(%i-%02i-%02i) StringID: %u, Type: %u, Ref1: %u, %u, Ref2: %u, %u\n",
326  ymd.year, ymd.month + 1, ymd.day, news->string_id, news->type,
327  news->reftype1, news->ref1, news->reftype2, news->ref2);
328  }
329  buffer += seprintf(buffer, last, "\n");
330  return buffer;
331 }
332 
339 char *CrashLog::FillCrashLog(char *buffer, const char *last) const
340 {
341  time_t cur_time = time(NULL);
342  buffer += seprintf(buffer, last, "*** OpenTTD Crash Report ***\n\n");
343  buffer += seprintf(buffer, last, "Crash at: %s", asctime(gmtime(&cur_time)));
344 
345  YearMonthDay ymd;
346  ConvertDateToYMD(_date, &ymd);
347  buffer += seprintf(buffer, last, "In game date: %i-%02i-%02i (%i)\n\n", ymd.year, ymd.month + 1, ymd.day, _date_fract);
348 
349  buffer = this->LogError(buffer, last, CrashLog::message);
350  buffer = this->LogOpenTTDVersion(buffer, last);
351  buffer = this->LogRegisters(buffer, last);
352  buffer = this->LogStacktrace(buffer, last);
353  buffer = this->LogOSVersion(buffer, last);
354  buffer = this->LogCompiler(buffer, last);
355  buffer = this->LogConfiguration(buffer, last);
356  buffer = this->LogLibraries(buffer, last);
357  buffer = this->LogModules(buffer, last);
358  buffer = this->LogGamelog(buffer, last);
359  buffer = this->LogRecentNews(buffer, last);
360 
361  buffer += seprintf(buffer, last, "*** End of OpenTTD Crash Report ***\n");
362  return buffer;
363 }
364 
374 bool CrashLog::WriteCrashLog(const char *buffer, char *filename, const char *filename_last) const
375 {
376  seprintf(filename, filename_last, "%scrash.log", _personal_dir);
377 
378  FILE *file = FioFOpenFile(filename, "w", NO_DIRECTORY);
379  if (file == NULL) return false;
380 
381  size_t len = strlen(buffer);
382  size_t written = fwrite(buffer, 1, len, file);
383 
384  FioFCloseFile(file);
385  return len == written;
386 }
387 
388 /* virtual */ int CrashLog::WriteCrashDump(char *filename, const char *filename_last) const
389 {
390  /* Stub implementation; not all OSes support this. */
391  return 0;
392 }
393 
402 bool CrashLog::WriteSavegame(char *filename, const char *filename_last) const
403 {
404  /* If the map array doesn't exist, saving will fail too. If the map got
405  * initialised, there is a big chance the rest is initialised too. */
406  if (_m == NULL) return false;
407 
408  try {
410 
411  seprintf(filename, filename_last, "%scrash.sav", _personal_dir);
412 
413  /* Don't do a threaded saveload. */
414  return SaveOrLoad(filename, SLO_SAVE, DFT_GAME_FILE, NO_DIRECTORY, false) == SL_OK;
415  } catch (...) {
416  return false;
417  }
418 }
419 
428 bool CrashLog::WriteScreenshot(char *filename, const char *filename_last) const
429 {
430  /* Don't draw when we have invalid screen size */
431  if (_screen.width < 1 || _screen.height < 1 || _screen.dst_ptr == NULL) return false;
432 
433  bool res = MakeScreenshot(SC_CRASHLOG, "crash");
434  if (res) strecpy(filename, _full_screenshot_name, filename_last);
435  return res;
436 }
437 
445 {
446  /* Don't keep looping logging crashes. */
447  static bool crashlogged = false;
448  if (crashlogged) return false;
449  crashlogged = true;
450 
451  char filename[MAX_PATH];
452  char buffer[65536];
453  bool ret = true;
454 
455  printf("Crash encountered, generating crash log...\n");
456  this->FillCrashLog(buffer, lastof(buffer));
457  printf("%s\n", buffer);
458  printf("Crash log generated.\n\n");
459 
460  printf("Writing crash log to disk...\n");
461  bool bret = this->WriteCrashLog(buffer, filename, lastof(filename));
462  if (bret) {
463  printf("Crash log written to %s. Please add this file to any bug reports.\n\n", filename);
464  } else {
465  printf("Writing crash log failed. Please attach the output above to any bug reports.\n\n");
466  ret = false;
467  }
468 
469  /* Don't mention writing crash dumps because not all platforms support it. */
470  int dret = this->WriteCrashDump(filename, lastof(filename));
471  if (dret < 0) {
472  printf("Writing crash dump failed.\n\n");
473  ret = false;
474  } else if (dret > 0) {
475  printf("Crash dump written to %s. Please add this file to any bug reports.\n\n", filename);
476  }
477 
478  printf("Writing crash savegame...\n");
479  bret = this->WriteSavegame(filename, lastof(filename));
480  if (bret) {
481  printf("Crash savegame written to %s. Please add this file and the last (auto)save to any bug reports.\n\n", filename);
482  } else {
483  ret = false;
484  printf("Writing crash savegame failed. Please attach the last (auto)save to any bug reports.\n\n");
485  }
486 
487  printf("Writing crash screenshot...\n");
488  bret = this->WriteScreenshot(filename, lastof(filename));
489  if (bret) {
490  printf("Crash screenshot written to %s. Please add this file to any bug reports.\n\n", filename);
491  } else {
492  ret = false;
493  printf("Writing crash screenshot failed.\n\n");
494  }
495 
496  return ret;
497 }
498 
503 /* static */ void CrashLog::SetErrorMessage(const char *message)
504 {
506 }
507 
513 {
517 }
Functions related to OTTD&#39;s strings.
void GamelogPrint(GamelogPrintProc *proc)
Prints active gamelog.
Definition: gamelog.cpp:188
int GetVersion() const
Get the version of the script.
Definition: script_info.hpp:74
Definition of stuff that is very close to a company, like the company struct itself.
char _full_screenshot_name[MAX_PATH]
Pathname of the screenshot file.
Definition: screenshot.cpp:40
bool _networking
are we in networking mode?
Definition: network.cpp:56
Base of all video drivers.
void GamelogEmergency()
Logs a emergency savegame.
Definition: gamelog.cpp:404
bool WriteCrashLog(const char *buffer, char *filename, const char *filename_last) const
Write the crash log to a file.
Definition: crashlog.cpp:374
void FioFCloseFile(FILE *f)
Close a file in a safe way.
Definition: fileio.cpp:334
Functions related to dates.
Day day
Day (1..31)
Definition: date_type.h:106
int CDECL seprintf(char *str, const char *last, const char *format,...)
Safer implementation of snprintf; same as snprintf except:
Definition: string.cpp:409
static const char * gamelog_last
Temporary &#39;local&#39; location of the end of the buffer.
Definition: crashlog.h:27
const char * GetName() const
Get the Name of the script.
Definition: script_info.hpp:59
Index of the monospaced font in the font tables.
Definition: gfx_type.h:207
Functions to be called to log possibly unsafe game events.
virtual char * LogError(char *buffer, const char *last, const char *message) const =0
Writes actually encountered error to the buffer.
Generic functions for replacing base data (graphics, sounds).
Tile * _m
Tiles of the map.
Definition: map.cpp:32
const LanguageMetadata * _current_language
The currently loaded language.
Definition: strings.cpp:50
Base for all sound drivers.
Tindex index
Index of this pool item.
Definition: pool_type.hpp:147
#define lastof(x)
Get the last element of an fixed size array.
Definition: depend.cpp:50
Functions to make screenshots.
Functions related to maps.
static FontCache * Get(FontSize fs)
Get the font cache of a given font size.
Definition: fontcache.h:139
File is being saved.
Definition: fileio_type.h:52
NewsItem * _oldest_news
head of news items queue
Definition: news_gui.cpp:48
virtual int WriteCrashDump(char *filename, const char *filename_last) const
Write the (crash) dump to a file.
Definition: crashlog.cpp:388
CompanyByte _local_company
Company controlled by the human player at this client. Can also be COMPANY_SPECTATOR.
Definition: company_cmd.cpp:46
Save game or scenario file.
Definition: fileio_type.h:33
Functions to read fonts from files and cache them.
Functions/types related to saving and loading games.
char * LogGamelog(char *buffer, const char *last) const
Writes the gamelog data to the buffer.
Definition: crashlog.cpp:304
DateFract _date_fract
Fractional part of the day.
Definition: date.cpp:29
virtual void Stop()=0
Stop this driver.
char * LogOpenTTDVersion(char *buffer, const char *last) const
Writes OpenTTD&#39;s version to the buffer.
Definition: crashlog.cpp:120
GUI functions related to the news.
static const char * message
Pointer to the error message.
Definition: crashlog.h:21
#define TTD_LITTLE_ENDIAN
Little endian builds use this for TTD_ENDIAN.
Definition: endian_type.hpp:24
const char * name
The name of the base set.
Functions related to the gfx engine.
FILE * FioFOpenFile(const char *filename, const char *mode, Subdirectory subdir, size_t *filesize)
Opens a OpenTTD file somewhere in a personal or global directory.
Definition: fileio.cpp:465
A path without any base directory.
Definition: fileio_type.h:127
Base for all music playback.
Definition of base types and functions in a cross-platform compatible way.
Data structure to convert between Date and triplet (year, month, and day).
Definition: date_type.h:103
A number of safeguards to prevent using unsafe methods.
static void AfterCrashLogCleanup()
Try to close the sound/video stuff so it doesn&#39;t keep lingering around incorrect video states or so...
Definition: crashlog.cpp:512
bool MakeCrashLog() const
Makes the crash log, writes it to a file and then subsequently tries to make a crash dump and crash s...
Definition: crashlog.cpp:444
Information about languages and their files.
static char * gamelog_buffer
Temporary &#39;local&#39; location of the buffer.
Definition: crashlog.h:24
const char * _personal_dir
custom directory for personal settings, saves, newgrf, etc.
Definition: fileio.cpp:1154
Year year
Year (0...)
Definition: date_type.h:104
bool WriteScreenshot(char *filename, const char *filename_last) const
Write the (crash) screenshot to a file.
Definition: crashlog.cpp:428
static MusicDriver * GetInstance()
Get the currently active instance of the music driver.
Basic functions/variables used all over the place.
SaveOrLoadResult SaveOrLoad(const char *filename, SaveLoadOperation fop, DetailedFileType dft, Subdirectory sb, bool threaded)
Main Save or Load function where the high-level saveload functions are handled.
Definition: saveload.cpp:2702
virtual char * LogCompiler(char *buffer, const char *last) const
Writes compiler (and its version, if available) to the buffer.
Definition: crashlog.cpp:78
static Blitter * GetCurrentBlitter()
Get the current active blitter (always set by calling SelectBlitter).
Definition: factory.hpp:147
uint32 version
The version of this base set.
virtual const char * GetName() const =0
Get the name of this driver.
static class GameInfo * GetInfo()
Get the current GameInfo.
Definition: game.hpp:82
Month month
Month (0..11)
Definition: date_type.h:105
char file[MAX_PATH]
Name of the file we read this data from.
Definition: language.h:95
bool WriteSavegame(char *filename, const char *filename_last) const
Write the (crash) savegame to a file.
Definition: crashlog.cpp:402
Functions to be called to log a crash.
bool MakeScreenshot(ScreenshotType t, const char *name)
Make an actual screenshot.
Definition: screenshot.cpp:812
static SoundDriver * GetInstance()
Get the currently active instance of the sound driver.
GameInfo keeps track of all information of an Game, like Author, Description, ... ...
virtual char * LogStacktrace(char *buffer, const char *last) const =0
Writes the stack trace to the buffer, if there is information about it available. ...
Functions related to companies.
NewsItem * next
Next news item.
Definition: news_type.h:123
static VideoDriver * GetInstance()
Get the currently active instance of the video driver.
virtual char * LogOSVersion(char *buffer, const char *last) const =0
Writes OS&#39; version to the buffer.
SDL support.
char * LogLibraries(char *buffer, const char *last) const
Writes information (versions) of the used libraries.
Definition: crashlog.cpp:222
char * strecpy(char *dst, const char *src, const char *last)
Copies characters from one buffer to another.
Definition: depend.cpp:68
Index of the normal font in the font tables.
Definition: gfx_type.h:204
char * LogRecentNews(char *buffer, const char *list) const
Writes any recent news messages to the buffer.
Definition: crashlog.cpp:318
Base functions for all Games.
bool _network_server
network-server is active
Definition: network.cpp:57
Index of the small font in the font tables.
Definition: gfx_type.h:205
Index of the large font in the font tables.
Definition: gfx_type.h:206
declaration of OTTD revision dependent variables
char * LogConfiguration(char *buffer, const char *last) const
Writes the (important) configuration settings to the buffer.
Definition: crashlog.cpp:159
completed successfully
Definition: saveload.h:300
virtual char * LogRegisters(char *buffer, const char *last) const
Writes information about the data in the registers, if there is information about it available...
Definition: crashlog.cpp:102
static void GamelogFillCrashLog(const char *s)
Helper function for printing the gamelog.
Definition: crashlog.cpp:293
AIInfo keeps track of all information of an AI, like Author, Description, ...
char * FillCrashLog(char *buffer, const char *last) const
Fill the crash log buffer with all data of a crash log.
Definition: crashlog.cpp:339
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...
Definition: crashlog.cpp:108
Date _date
Current date in days (day counter)
Definition: date.cpp:28
Raw screenshot from blitter buffer.
Definition: screenshot.h:22
void ConvertDateToYMD(Date date, YearMonthDay *ymd)
Converts a Date to a Year, Month & Day.
Definition: date.cpp:94
static void SetErrorMessage(const char *message)
Sets a message for the error message handler.
Definition: crashlog.cpp:503
Factory to &#39;query&#39; all available blitters.
static const GraphicsSet * GetUsedSet()
Return the used set.
Information about a single item of news.
Definition: news_type.h:121