Warn on libmpv version mismatch

Signed-off-by: Mahyar Koshkouei <mahyar.koshkouei@gmail.com>
This commit is contained in:
Mahyar Koshkouei 2018-05-23 15:32:10 +01:00
parent 36faa474c7
commit 3015ebabc4
No known key found for this signature in database
GPG Key ID: B790CA66809F18D6
1 changed files with 6 additions and 0 deletions

View File

@ -152,6 +152,12 @@ static void on_mpv_events(void *mpv)
void retro_init(void) void retro_init(void)
{ {
if(mpv_client_api_version() != MPV_CLIENT_API_VERSION)
{
log_cb(RETRO_LOG_WARN, "libmpv version mismatch. Please update or "
"recompile mpv-libretro after updating libmpv.");
}
return; return;
} }