Commit 035a3f5e authored by Jean-Philippe André's avatar Jean-Philippe André

Skins2: check if file exists, not folder

Note: it looks like vlc_stat("C:") returns an error (Windows)
parent e75d1bf1
...@@ -77,7 +77,7 @@ bool ThemeLoader::load( const string &fileName ) ...@@ -77,7 +77,7 @@ bool ThemeLoader::load( const string &fileName )
//Before all, let's see if the file is present //Before all, let's see if the file is present
struct stat p_stat; struct stat p_stat;
if( vlc_stat( path.c_str(), &p_stat ) ) if( vlc_stat( fileName.c_str(), &p_stat ) )
return false; return false;
// First, we try to un-targz the file, and if it fails we hope it's a XML // First, we try to un-targz the file, and if it fails we hope it's a XML
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment