forked from len0rd/rockbox
SDL: Log the version detected
* At build time (in configure script) * At runtime (but only for simulator builds) Change-Id: I01c6f0f39d4c68e3a5a037212b65baf693bb84a9
This commit is contained in:
parent
95681c3959
commit
29e909c25d
2 changed files with 14 additions and 1 deletions
|
@ -268,6 +268,19 @@ void system_init(void)
|
||||||
if (SDL_InitSubSystem(SDL_INIT_TIMER))
|
if (SDL_InitSubSystem(SDL_INIT_TIMER))
|
||||||
panicf("%s", SDL_GetError());
|
panicf("%s", SDL_GetError());
|
||||||
|
|
||||||
|
#ifdef SIMULATOR
|
||||||
|
{
|
||||||
|
SDL_version compiled;
|
||||||
|
SDL_version linked;
|
||||||
|
|
||||||
|
SDL_VERSION(&compiled);
|
||||||
|
SDL_GetVersion(&linked);
|
||||||
|
printf("Rockbox compiled with SDL %u.%u.%u but running on SDL %u.%u.%u\n",
|
||||||
|
compiled.major, compiled.minor, compiled.patch,
|
||||||
|
linked.major, linked.minor, linked.patch);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef __WIN32 /* Fails on Windows */
|
#ifndef __WIN32 /* Fails on Windows */
|
||||||
SDL_InitSubSystem(SDL_INIT_VIDEO);
|
SDL_InitSubSystem(SDL_INIT_VIDEO);
|
||||||
sdl_window_setup();
|
sdl_window_setup();
|
||||||
|
|
2
tools/configure
vendored
2
tools/configure
vendored
|
@ -441,7 +441,7 @@ simcc () {
|
||||||
echo "re-run configure!"
|
echo "re-run configure!"
|
||||||
exit 2
|
exit 2
|
||||||
else
|
else
|
||||||
echo Using $sdl
|
echo Using $sdl - version `$sdl --version`
|
||||||
|
|
||||||
# generic ${sdl_config} checker
|
# generic ${sdl_config} checker
|
||||||
sdlccopts=$($sdl --cflags)
|
sdlccopts=$($sdl --cflags)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue