aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorronie <ronie@poedel.net>2015-01-13 20:20:59 +0100
committerronie <ronie@poedel.net>2015-01-13 20:20:59 +0100
commitac7fefaf43baad29493d82a2cf9eed505720543c (patch)
tree0af39f5fc7c731d2c4ec9d7dd19df4002bee02d7
parentf185a3a6bd573f4888d7cc916730249a6b12a565 (diff)
add path option
-rw-r--r--xbmc/interfaces/Builtins.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/xbmc/interfaces/Builtins.cpp b/xbmc/interfaces/Builtins.cpp
index d99f047b2c..3252d05493 100644
--- a/xbmc/interfaces/Builtins.cpp
+++ b/xbmc/interfaces/Builtins.cpp
@@ -1285,6 +1285,19 @@ int CBuiltins::Execute(const std::string& execString)
}
else if (execute == "skin.setimage")
{
+ if (params.size() > 2)
+ {
+ value = params[2];
+ URIUtils::AddSlashAtEnd(value);
+ bool bIsSource;
+ if (CUtil::GetMatchingSource(value,localShares,bIsSource) < 0) // path is outside shares - add it as a separate one
+ {
+ CMediaSource share;
+ share.strName = g_localizeStrings.Get(13278);
+ share.strPath = value;
+ localShares.push_back(share);
+ }
+ }
if (CGUIDialogFileBrowser::ShowAndGetImage(localShares, g_localizeStrings.Get(1030), value))
CSkinSettings::Get().SetString(string, value);
}