From 3015ebabc4e261d083aaef96b16b55c7977b2a73 Mon Sep 17 00:00:00 2001 From: Mahyar Koshkouei Date: Wed, 23 May 2018 15:32:10 +0100 Subject: [PATCH] Warn on libmpv version mismatch Signed-off-by: Mahyar Koshkouei --- mpv-libretro.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mpv-libretro.c b/mpv-libretro.c index dbc9c40..cb5e797 100644 --- a/mpv-libretro.c +++ b/mpv-libretro.c @@ -152,6 +152,12 @@ static void on_mpv_events(void *mpv) 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; }