Skip to content

Commit

Permalink
addongui: fix fallback method if addon does not provide a skin file f…
Browse files Browse the repository at this point in the history
…or current skin
  • Loading branch information
FernetMenta committed Mar 18, 2013
1 parent 89bd125 commit f810384
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xbmc/addons/AddonCallbacksGUI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,13 @@ GUIHANDLE CAddonCallbacksGUI::Window_New(void *addonData, const char *xmlFilenam
//FIXME make this static method of current skin?
CStdString str("none");
AddonProps props(str, ADDON_SKIN, str, str);
CSkinInfo skinInfo(props);
CStdString basePath;
URIUtils::AddFileToFolder(guiHelper->m_addon->Path(), "resources", basePath);
URIUtils::AddFileToFolder(basePath, "skins", basePath);
URIUtils::AddFileToFolder(basePath, defaultSkin, basePath);
props.path = basePath;

CSkinInfo skinInfo(props);
skinInfo.Start();
strSkinPath = skinInfo.GetSkinPath(xmlFilename, &res, basePath);

Expand Down

0 comments on commit f810384

Please sign in to comment.