Without the shortcut, it is not possible to start the access_demux
for skins, as the full URL is set to file://<path>.vlt
Now we can read skins packages as in earlier versions:
$ vlc your_skin.vlt
set_capability( "access_demux", 5 )
set_callbacks( DemuxOpen, NULL )
add_shortcut( "skins" )
+ add_shortcut( "file" )
vlc_module_end ()
#include "../src/vlcproc.hpp"
#include "../src/window_manager.hpp"
+#include <vlc_url.h>
+
#ifdef HAVE_FCNTL_H
# include <fcntl.h>
#endif
#define ZIP_BUFFER_SIZE 4096
-bool ThemeLoader::load( const string &fileName )
+bool ThemeLoader::load( const string &fullFileName )
{
+ char *decodedName = decode_URI_duplicate( fullFileName.c_str() );
+ string fileName = decodedName ? string(decodedName) : fullFileName;
+ free( decodedName );
+
string path = getFilePath( fileName );
//Before all, let's see if the file is present