1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-23 00:02:48 +02:00

Revert "GMenu2X now won't load skin files from the Default skin when using another skin."

This reverts commit 439d25c292.
Refusing to load files of the Default skin for a different one is a bad idea; it requires
that skin to provide every single PNG file needed by gmenu2x.
This commit is contained in:
Ayla 2011-07-11 18:14:27 +02:00
parent 00d8a04e00
commit 11e58c8ca5

View File

@ -72,6 +72,13 @@ string SurfaceCollection::getSkinFilePath(const string &skin, const string &file
if (fileExists(path)) if (fileExists(path))
return path; return path;
/* If it is nowhere to be found, as a last resort we check the
* "Default" skin on the system directory for a corresponding
* (but probably not similar) file. */
path = GMENU2X_SYSTEM_DIR "/skins/Default/" + file;
if (fileExists(path))
return path;
return ""; return "";
} }