mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-22 13:29:42 +02:00
add prefix case
Signed-off-by: Mirko Lindner <mirko@sharism.cc>
This commit is contained in:
parent
a1eb23eec1
commit
454e080477
@ -36,10 +36,13 @@ void SurfaceCollection::setSkin(string skin) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
string SurfaceCollection::getSkinFilePath(string file) {
|
string SurfaceCollection::getSkinFilePath(string file) {
|
||||||
|
string prefix = "/usr/share/gmenu2x/";
|
||||||
if (fileExists("skins/"+skin+"/"+file))
|
if (fileExists("skins/"+skin+"/"+file))
|
||||||
return "skins/"+skin+"/"+file;
|
return "skins/"+skin+"/"+file;
|
||||||
else if (fileExists("skins/Default/"+file))
|
else if (fileExists("skins/Default/"+file))
|
||||||
return "skins/Default/"+file;
|
return "skins/Default/"+file;
|
||||||
|
else if (fileExists(prefix+"skins/Default/"+file))
|
||||||
|
return prefix+"skins/Default/"+file;
|
||||||
else
|
else
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user