1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-25 20:51:38 +02:00

Overloaded the function SurfaceCollection::getSkinFilePath(), so that it can also be called with a skin as parameter.

This commit is contained in:
Ayla 2011-03-29 21:10:13 +02:00
parent d59b713e9b
commit 02b54d38a3
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View 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();