From bb87f2911b63eaf80e49d689bf52ecf2042ae098 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 28 May 2014 20:31:09 +0300 Subject: Move from resourcemanager functions related to files into other files. --- src/gui/theme.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gui/theme.cpp') diff --git a/src/gui/theme.cpp b/src/gui/theme.cpp index 4708a48d0..1d2c1d2b2 100644 --- a/src/gui/theme.cpp +++ b/src/gui/theme.cpp @@ -52,14 +52,18 @@ Theme *theme = nullptr; // Set the theme path... static void initDefaultThemePath() { - const ResourceManager *const resman = ResourceManager::getInstance(); defaultThemePath = branding.getStringValue("guiThemePath"); logger->log("defaultThemePath: " + defaultThemePath); - if (!defaultThemePath.empty() && resman->isDirectory(defaultThemePath)) + if (!defaultThemePath.empty() && PhysFs::isDirectory( + defaultThemePath.c_str())) + { return; + } else + { defaultThemePath = "themes/"; + } } Theme::Theme() : -- cgit v1.2.3-70-g09d2