mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 12:48:16 +00:00
BASE: SDL: Show SDL version in --version output
This commit is contained in:
parent
41495cd283
commit
6fcfdaa1b4
@ -61,6 +61,10 @@ static const char USAGE_STRING[] =
|
||||
"Try '%s --help' for more options.\n"
|
||||
;
|
||||
|
||||
#ifdef SDL_BACKEND
|
||||
#include "backends/platform/sdl/sdl-sys.h"
|
||||
#endif
|
||||
|
||||
// DONT FIXME: DO NOT ORDER ALPHABETICALLY, THIS IS ORDERED BY IMPORTANCE/CATEGORY! :)
|
||||
static const char HELP_STRING1[] =
|
||||
"ScummVM - Graphical Adventure Game Interpreter\n"
|
||||
@ -1766,6 +1770,15 @@ bool processSettings(Common::String &command, Common::StringMap &settings, Commo
|
||||
return true;
|
||||
} else if (command == "version") {
|
||||
printf("%s\n", gScummVMFullVersion);
|
||||
#ifdef SDL_BACKEND
|
||||
#ifdef USE_SDL2
|
||||
SDL_version sdlLinkedVersion;
|
||||
SDL_GetVersion(&sdlLinkedVersion);
|
||||
printf("Using SDL backend with SDL %d.%d.%d\n", sdlLinkedVersion.major, sdlLinkedVersion.minor, sdlLinkedVersion.patch);
|
||||
#else
|
||||
printf("Using SDL backend with SDL %d.%d.%d\n", SDL_Linked_Version()->major, SDL_Linked_Version()->minor, SDL_Linked_Version()->patch);
|
||||
#endif
|
||||
#endif
|
||||
printf("Features compiled in: %s\n", gScummVMFeatures);
|
||||
return true;
|
||||
} else if (command == "help") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user