mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 06:55:09 +00:00
sdl: log version
This commit is contained in:
parent
213674511e
commit
c45deb3f87
2 changed files with 13 additions and 1 deletions
|
|
@ -237,6 +237,18 @@ bool sdl_pad_handler::Init()
|
|||
}
|
||||
}
|
||||
|
||||
SDL_version version{};
|
||||
SDL_GetVersion(&version);
|
||||
|
||||
if (const char* revision = SDL_GetRevision(); revision && strlen(revision) > 0)
|
||||
{
|
||||
sdl_log.notice("Using version: %d.%d.%d (revision='%s')", version.major, version.minor, version.patch, revision);
|
||||
}
|
||||
else
|
||||
{
|
||||
sdl_log.notice("Using version: %d.%d.%d", version.major, version.minor, version.patch);
|
||||
}
|
||||
|
||||
m_is_init = true;
|
||||
enumerate_devices();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue