mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +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.
Origin commit data
------------------
Commit: e3c6a54a81
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-09-01 (Sat, 01 Sep 2018)
This commit is contained in:
@@ -696,8 +696,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