diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-05-28 20:31:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-05-28 20:31:09 +0300 |
commit | bb87f2911b63eaf80e49d689bf52ecf2042ae098 (patch) | |
tree | 0778087134ec3c5a2370d417bcadb64a1dc6a9bc /src/resources/wallpaper.cpp | |
parent | 4415cb66734e67dfcdf8924d354107d27fb70fee (diff) | |
download | manaverse-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.gz manaverse-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.bz2 manaverse-bb87f2911b63eaf80e49d689bf52ecf2042ae098.tar.xz manaverse-bb87f2911b63eaf80e49d689bf52ecf2042ae098.zip |
Move from resourcemanager functions related to files into other files.
Diffstat (limited to 'src/resources/wallpaper.cpp')
-rw-r--r-- | src/resources/wallpaper.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/resources/wallpaper.cpp b/src/resources/wallpaper.cpp index 4674035cf..979cf9844 100644 --- a/src/resources/wallpaper.cpp +++ b/src/resources/wallpaper.cpp @@ -46,26 +46,24 @@ static std::string wallpaperFile; // Search for the wallpaper path values sequentially.. static void initDefaultWallpaperPaths() { - const ResourceManager *const resman = ResourceManager::getInstance(); - // Init the path wallpaperPath = branding.getStringValue("wallpapersPath"); - if (wallpaperPath.empty() || !resman->isDirectory(wallpaperPath)) + if (wallpaperPath.empty() || !PhysFs::isDirectory(wallpaperPath.c_str())) wallpaperPath = paths.getValue("wallpapers", ""); - if (wallpaperPath.empty() || !resman->isDirectory(wallpaperPath)) + if (wallpaperPath.empty() || !PhysFs::isDirectory(wallpaperPath.c_str())) wallpaperPath = "graphics/images/"; // Init the default file wallpaperFile = branding.getStringValue("wallpaperFile"); - if (!wallpaperFile.empty() && !resman->isDirectory(wallpaperFile)) + if (!wallpaperFile.empty() && !PhysFs::isDirectory(wallpaperFile.c_str())) return; else wallpaperFile = paths.getValue("wallpaperFile", ""); - if (wallpaperFile.empty() || resman->isDirectory(wallpaperFile)) + if (wallpaperFile.empty() || PhysFs::isDirectory(wallpaperFile.c_str())) wallpaperFile = "login_wallpaper.png"; } |