From 02b54d38a39f6434df3aab7c9a481f2b080d72b6 Mon Sep 17 00:00:00 2001 From: Ayla Date: Tue, 29 Mar 2011 21:10:13 +0200 Subject: [PATCH] Overloaded the function SurfaceCollection::getSkinFilePath(), so that it can also be called with a skin as parameter. --- src/surfacecollection.cpp | 5 +++++ src/surfacecollection.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/surfacecollection.cpp b/src/surfacecollection.cpp index 3e6f2a2..b6d4fc4 100644 --- a/src/surfacecollection.cpp +++ b/src/surfacecollection.cpp @@ -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; diff --git a/src/surfacecollection.h b/src/surfacecollection.h index 48386e1..9a8874f 100644 --- a/src/surfacecollection.h +++ b/src/surfacecollection.h @@ -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();