[Add] Display compiled and linked SDL versions.
This commit is contained in:
parent
7ebeadc73c
commit
ff172951e1
@ -60,6 +60,7 @@ int indjoystick = -1;
|
|||||||
char* namjoystick = NULL;
|
char* namjoystick = NULL;
|
||||||
|
|
||||||
/* Prototypes. */
|
/* Prototypes. */
|
||||||
|
static void print_SDLversion(void);
|
||||||
static void load_screen(void);
|
static void load_screen(void);
|
||||||
static void load_all(void);
|
static void load_all(void);
|
||||||
static void unload_all(void);
|
static void unload_all(void);
|
||||||
@ -115,6 +116,10 @@ int main(int argc, char** argv) {
|
|||||||
LOG(" %s", dataname);
|
LOG(" %s", dataname);
|
||||||
DEBUG();
|
DEBUG();
|
||||||
|
|
||||||
|
/* Display the SDL Version. */
|
||||||
|
print_SDLversion();
|
||||||
|
DEBUG();
|
||||||
|
|
||||||
/* Random numbers. */
|
/* Random numbers. */
|
||||||
rng_init();
|
rng_init();
|
||||||
|
|
||||||
@ -517,3 +522,17 @@ char* lephisto_version(void) {
|
|||||||
return human_version;
|
return human_version;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @bief Print the SDL version.
|
||||||
|
*/
|
||||||
|
static void print_SDLversion(void) {
|
||||||
|
const SDL_version* linked;
|
||||||
|
SDL_version compiled;
|
||||||
|
SDL_VERSION(&compiled);
|
||||||
|
linked = SDL_Linked_Version();
|
||||||
|
|
||||||
|
DEBUG("SDL: %d.%d.%d [compiled: %d.%d.%d]",
|
||||||
|
linked->major, linked->minor, linked->patch,
|
||||||
|
compiled.major, compiled.minor, compiled.patch);
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user