mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
src/driver/fb_generic.cpp: add possibility to use images with full name
Keep parameter file_type empty to use filenames with file name extension.
This commit is contained in:
@@ -704,8 +704,9 @@ void CFrameBuffer::setIconBasePath(const std::string & iconPath)
|
|||||||
|
|
||||||
std::string CFrameBuffer::getIconPath(std::string icon_name, std::string file_type)
|
std::string CFrameBuffer::getIconPath(std::string icon_name, std::string file_type)
|
||||||
{
|
{
|
||||||
std::string path, filetype;
|
std::string path, filetype = "";
|
||||||
filetype = "." + file_type;
|
if (!file_type.empty())
|
||||||
|
filetype = "." + file_type;
|
||||||
|
|
||||||
std::string dir[] = { THEMESDIR_VAR "/" + g_settings.theme_name + "/icons",
|
std::string dir[] = { THEMESDIR_VAR "/" + g_settings.theme_name + "/icons",
|
||||||
THEMESDIR "/" + g_settings.theme_name + "/icons",
|
THEMESDIR "/" + g_settings.theme_name + "/icons",
|
||||||
|
Reference in New Issue
Block a user