(svn r20138) -Change: also put the base set version number in the crash log

This commit is contained in:
rubidium 2010-07-14 09:06:41 +00:00
parent 4f7ad57c98
commit a690872333

View File

@ -109,22 +109,25 @@ char *CrashLog::LogConfiguration(char *buffer, const char *last) const
buffer += seprintf(buffer, last, buffer += seprintf(buffer, last,
"Configuration:\n" "Configuration:\n"
" Blitter: %s\n" " Blitter: %s\n"
" Graphics set: %s\n" " Graphics set: %s (%d)\n"
" Language: %s\n" " Language: %s\n"
" Music driver: %s\n" " Music driver: %s\n"
" Music set: %s\n" " Music set: %s (%d)\n"
" Network: %s\n" " Network: %s\n"
" Sound driver: %s\n" " Sound driver: %s\n"
" Sound set: %s\n" " Sound set: %s (%d)\n"
" Video driver: %s\n\n", " Video driver: %s\n\n",
BlitterFactoryBase::GetCurrentBlitter() == NULL ? "none" : BlitterFactoryBase::GetCurrentBlitter()->GetName(), BlitterFactoryBase::GetCurrentBlitter() == NULL ? "none" : BlitterFactoryBase::GetCurrentBlitter()->GetName(),
BaseGraphics::GetUsedSet() == NULL ? "none" : BaseGraphics::GetUsedSet()->name, BaseGraphics::GetUsedSet() == NULL ? "none" : BaseGraphics::GetUsedSet()->name,
BaseGraphics::GetUsedSet() == NULL ? -1 : BaseGraphics::GetUsedSet()->version,
StrEmpty(_dynlang.curr_file) ? "none" : _dynlang.curr_file, StrEmpty(_dynlang.curr_file) ? "none" : _dynlang.curr_file,
_music_driver == NULL ? "none" : _music_driver->GetName(), _music_driver == NULL ? "none" : _music_driver->GetName(),
BaseMusic::GetUsedSet() == NULL ? "none" : BaseMusic::GetUsedSet()->name, BaseMusic::GetUsedSet() == NULL ? "none" : BaseMusic::GetUsedSet()->name,
BaseMusic::GetUsedSet() == NULL ? -1 : BaseMusic::GetUsedSet()->version,
_networking ? (_network_server ? "server" : "client") : "no", _networking ? (_network_server ? "server" : "client") : "no",
_sound_driver == NULL ? "none" : _sound_driver->GetName(), _sound_driver == NULL ? "none" : _sound_driver->GetName(),
BaseSounds::GetUsedSet() == NULL ? "none" : BaseSounds::GetUsedSet()->name, BaseSounds::GetUsedSet() == NULL ? "none" : BaseSounds::GetUsedSet()->name,
BaseSounds::GetUsedSet() == NULL ? -1 : BaseSounds::GetUsedSet()->version,
_video_driver == NULL ? "none" : _video_driver->GetName() _video_driver == NULL ? "none" : _video_driver->GetName()
); );