mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-01-11 18:41:14 +00:00
isle: log SDL version at start up
This commit is contained in:
parent
438c074e5e
commit
c163741fde
@ -45,6 +45,7 @@
|
|||||||
#define SDL_MAIN_USE_CALLBACKS
|
#define SDL_MAIN_USE_CALLBACKS
|
||||||
#include <SDL3/SDL.h>
|
#include <SDL3/SDL.h>
|
||||||
#include <SDL3/SDL_main.h>
|
#include <SDL3/SDL_main.h>
|
||||||
|
#include <SDL3/SDL_revision.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <iniparser.h>
|
#include <iniparser.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@ -308,6 +309,17 @@ SDL_AppResult SDL_AppInit(void** appstate, int argc, char** argv)
|
|||||||
{
|
{
|
||||||
*appstate = NULL;
|
*appstate = NULL;
|
||||||
|
|
||||||
|
{
|
||||||
|
int version = SDL_GetVersion();
|
||||||
|
SDL_Log(
|
||||||
|
"SDL version %d.%d.%d (%s)",
|
||||||
|
SDL_VERSIONNUM_MAJOR(version),
|
||||||
|
SDL_VERSIONNUM_MINOR(version),
|
||||||
|
SDL_VERSIONNUM_MICRO(version),
|
||||||
|
SDL_GetRevision()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
|
SDL_SetHint(SDL_HINT_MOUSE_TOUCH_EVENTS, "0");
|
||||||
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
|
SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0");
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user