From 425dc752c2ffff62f296b720255824b5f14d566b Mon Sep 17 00:00:00 2001 From: Mahyar Koshkouei Date: Sun, 7 Jan 2018 21:50:54 +0000 Subject: [PATCH] Use correct version Signed-off-by: Mahyar Koshkouei --- mpv-libretro.c | 3 ++- version.h | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 version.h diff --git a/mpv-libretro.c b/mpv-libretro.c index 0bfe6cd..5cf580b 100644 --- a/mpv-libretro.c +++ b/mpv-libretro.c @@ -9,6 +9,7 @@ #include #include "libretro.h" +#include "version.h" static struct retro_hw_render_callback hw_render; @@ -71,7 +72,7 @@ void retro_get_system_info(struct retro_system_info *info) { memset(info, 0, sizeof(*info)); info->library_name = "mpv"; - info->library_version = "v1"; + info->library_version = LIBRETRO_MPV_VERSION; info->need_fullpath = true; /* Allow MPV to load the file on its own */ info->valid_extensions = "mkv|avi|f4v|f4f|3gp|ogm|flv|mp4|mp3|flac|ogg|m4a|webm|3g2|mov|wmv|mpg|mpeg|vob|asf|divx|m2p|m2ts|ps|ts|mxf|wma|wav"; } diff --git a/version.h b/version.h new file mode 100644 index 0000000..d604f22 --- /dev/null +++ b/version.h @@ -0,0 +1,3 @@ +#ifndef LIBRETRO_MPV_VERSION +#define LIBRETRO_MPV_VERSION "0.1.alpha" +#endif