Fixed skins path

This commit is contained in:
Henrique Santiago
2012-08-23 04:17:19 -03:00
parent 621b1402c5
commit a306027cec
2 changed files with 21 additions and 7 deletions

View File

@@ -16,8 +16,7 @@ local function onSkinComboBoxOptionChange(self, optionText, optionData)
end
local function getSkinPath(name)
local current = getfsrcpath()
return g_resources.getRealDir(current) .. current .. '/skins/' .. string.lower(name)
return getfsrcpath() .. '/skins/' .. string.lower(name)
end
-- public functions
@@ -27,7 +26,7 @@ function Skins.init()
Skins.installSkins('skins')
if installedSkins[defaultSkinName] then
g_resources.addSearchPath(getSkinPath(defaultSkinName), 0)
g_resources.addSearchPath(getSkinPath(defaultSkinName), true)
end
local userSkinName = g_settings.get('skin', 'false')