(svn r26170) -Feature-ish: add the currently used fonts to the crash log

This commit is contained in:
rubidium
2013-12-22 17:46:27 +00:00
parent 7fcae50579
commit 8860bb5c8d
3 changed files with 21 additions and 0 deletions

View File

@@ -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) {