mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-12-27 10:36:27 +02:00
Overloaded the function SurfaceCollection::getSkinFilePath(), so that it can also be called with a skin as parameter.
This commit is contained in:
parent
d59b713e9b
commit
02b54d38a3
@ -39,6 +39,11 @@ void SurfaceCollection::setSkin(const string &skin) {
|
||||
}
|
||||
|
||||
string SurfaceCollection::getSkinFilePath(const string &file)
|
||||
{
|
||||
return SurfaceCollection::getSkinFilePath(skin, file);
|
||||
}
|
||||
|
||||
string SurfaceCollection::getSkinFilePath(const string &skin, const string &file)
|
||||
{
|
||||
/* We first search the skin file on the user-specific directory. */
|
||||
string path = GMenu2X::getHome() + "/skins/" + skin + "/" + file;
|
||||
|
@ -44,6 +44,7 @@ public:
|
||||
|
||||
void setSkin(const std::string &skin);
|
||||
std::string getSkinFilePath(const std::string &file);
|
||||
static std::string getSkinFilePath(const std::string &skin, const std::string &file);
|
||||
|
||||
bool defaultAlpha;
|
||||
void debug();
|
||||
|
Loading…
Reference in New Issue
Block a user