diff options
author | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-27 11:39:27 +0000 |
---|---|---|
committer | diego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-03-27 11:39:27 +0000 |
commit | b5743fcfdaca9d4e7c6778e9622b6f18756c9636 (patch) | |
tree | 112934f13020532ee130e7669284f68a03de415b /Gui/skin | |
parent | 171de9cf5f7df128635205270363b68f6b1348ef (diff) |
Rename the default GUI skins directory from 'Skin' to 'skins', keeping
backwards compatibility.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17975 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/skin')
-rw-r--r-- | Gui/skin/skin.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Gui/skin/skin.c b/Gui/skin/skin.c index b7b93073dc..2fd61ffad3 100644 --- a/Gui/skin/skin.c +++ b/Gui/skin/skin.c @@ -676,8 +676,16 @@ int skinRead( char * dname ) setname( skinMPlayerDir,dname ); if ( ( skinFile = fopen( fn,"rt" ) ) == NULL ) { - mp_msg( MSGT_GPLAYER,MSGL_STATUS,MSGTR_SKIN_SkinFileNotFound,fn ); - return -1; + setname( skinDirInHome_obsolete,dname ); + if ( ( skinFile = fopen( fn,"rt" ) ) == NULL ) + { + setname( skinMPlayerDir_obsolete,dname ); + if ( ( skinFile = fopen( fn,"rt" ) ) == NULL ) + { + mp_msg( MSGT_GPLAYER,MSGL_STATUS,MSGTR_SKIN_SkinFileNotFound,fn ); + return -1; + } + } } } |