diff options
author | rubidium <rubidium@openttd.org> | 2010-07-14 09:06:41 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-07-14 09:06:41 +0000 |
commit | 0dde0a75855934b52123fddbcd5a4312f09b1835 (patch) | |
tree | 1ad11aeb5cf79b501decec9d8615a9757f4cb9fa | |
parent | 01e0792b9188097907dfb52e34b4da8502482baa (diff) | |
download | openttd-0dde0a75855934b52123fddbcd5a4312f09b1835.tar.xz |
(svn r20138) -Change: also put the base set version number in the crash log
-rw-r--r-- | src/crashlog.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/crashlog.cpp b/src/crashlog.cpp index 0cce6d087..d77c7637d 100644 --- a/src/crashlog.cpp +++ b/src/crashlog.cpp @@ -109,22 +109,25 @@ char *CrashLog::LogConfiguration(char *buffer, const char *last) const buffer += seprintf(buffer, last, "Configuration:\n" " Blitter: %s\n" - " Graphics set: %s\n" + " Graphics set: %s (%d)\n" " Language: %s\n" " Music driver: %s\n" - " Music set: %s\n" + " Music set: %s (%d)\n" " Network: %s\n" " Sound driver: %s\n" - " Sound set: %s\n" + " Sound set: %s (%d)\n" " Video driver: %s\n\n", BlitterFactoryBase::GetCurrentBlitter() == NULL ? "none" : BlitterFactoryBase::GetCurrentBlitter()->GetName(), BaseGraphics::GetUsedSet() == NULL ? "none" : BaseGraphics::GetUsedSet()->name, + BaseGraphics::GetUsedSet() == NULL ? -1 : BaseGraphics::GetUsedSet()->version, StrEmpty(_dynlang.curr_file) ? "none" : _dynlang.curr_file, _music_driver == NULL ? "none" : _music_driver->GetName(), BaseMusic::GetUsedSet() == NULL ? "none" : BaseMusic::GetUsedSet()->name, + BaseMusic::GetUsedSet() == NULL ? -1 : BaseMusic::GetUsedSet()->version, _networking ? (_network_server ? "server" : "client") : "no", _sound_driver == NULL ? "none" : _sound_driver->GetName(), BaseSounds::GetUsedSet() == NULL ? "none" : BaseSounds::GetUsedSet()->name, + BaseSounds::GetUsedSet() == NULL ? -1 : BaseSounds::GetUsedSet()->version, _video_driver == NULL ? "none" : _video_driver->GetName() ); |