diff options
author | rubidium <rubidium@openttd.org> | 2013-12-22 17:46:27 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-12-22 17:46:27 +0000 |
commit | 00c05e79b19546ccde2aa3ddb7726523224e3df9 (patch) | |
tree | a2d684e951cede1ff0c3fb3520193c5e0f0054a6 /src/crashlog.cpp | |
parent | b02179bd8e269f8373a32980438f0eb9d61f5a62 (diff) | |
download | openttd-00c05e79b19546ccde2aa3ddb7726523224e3df9.tar.xz |
(svn r26170) -Feature-ish: add the currently used fonts to the crash log
Diffstat (limited to 'src/crashlog.cpp')
-rw-r--r-- | src/crashlog.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/crashlog.cpp b/src/crashlog.cpp index 6881ff31f..ef8c70dd1 100644 --- a/src/crashlog.cpp +++ b/src/crashlog.cpp @@ -26,6 +26,7 @@ #include "gfx_func.h" #include "network/network.h" #include "language.h" +#include "fontcache.h" #include "ai/ai_info.hpp" #include "game/game.hpp" @@ -147,6 +148,18 @@ char *CrashLog::LogConfiguration(char *buffer, const char *last) const _video_driver == NULL ? "none" : _video_driver->GetName() ); + buffer += seprintf(buffer, last, + "Fonts:\n" + " Small: %s\n" + " Medium: %s\n" + " Large: %s\n" + " Mono: %s\n\n", + FontCache::Get(FS_SMALL)->GetFontName(), + FontCache::Get(FS_NORMAL)->GetFontName(), + FontCache::Get(FS_LARGE)->GetFontName(), + FontCache::Get(FS_MONO)->GetFontName() + ); + buffer += seprintf(buffer, last, "AI Configuration (local: %i):\n", (int)_local_company); const Company *c; FOR_ALL_COMPANIES(c) { |