From d1aa5d15684801e07724daffaba8304b3c25814a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C3=ABl=20Carr=C3=A9?= Date: Mon, 25 Mar 2013 15:30:54 +0100 Subject: [PATCH] Windows Store App: fix plugins loading --- src/modules/bank.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/modules/bank.c b/src/modules/bank.c index cb2225da7b..7b05b8d1ba 100644 --- a/src/modules/bank.c +++ b/src/modules/bank.c @@ -317,6 +317,10 @@ static void AllocateAllPlugins (vlc_object_t *p_this) else mode = CACHE_USE; +#ifdef WINAPI_FAMILY_APP + /* Windows Store Apps can not load external plugins with absolute paths. */ + AllocatePluginPath (p_this, "plugins", mode); +#else /* Contruct the special search path for system that have a relocatable * executable. Set it to /plugins. */ char *vlcpath = config_GetLibDir (); @@ -327,6 +331,7 @@ static void AllocateAllPlugins (vlc_object_t *p_this) free( paths ); } free (vlcpath); +#endif /* WINAPI_FAMILY_APP */ /* If the user provided a plugin path, we add it to the list */ paths = getenv( "VLC_PLUGIN_PATH" ); -- 2.11.4.GIT