summaryrefslogtreecommitdiff
path: root/src/resources/wallpaper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-10 20:16:03 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-10 20:47:24 +0300
commit6c9c56b70db43f4100863d312835fce763698008 (patch)
tree4a182019f18677c1b71202a79d8f4faceebe05c9 /src/resources/wallpaper.cpp
parent5e7866bd7cc3bf850d9ba3e636d8eca88ac797c7 (diff)
downloadplus-6c9c56b70db43f4100863d312835fce763698008.tar.gz
plus-6c9c56b70db43f4100863d312835fce763698008.tar.bz2
plus-6c9c56b70db43f4100863d312835fce763698008.tar.xz
plus-6c9c56b70db43f4100863d312835fce763698008.zip
Rename physfstools into virtfs.
Diffstat (limited to 'src/resources/wallpaper.cpp')
-rw-r--r--src/resources/wallpaper.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/resources/wallpaper.cpp b/src/resources/wallpaper.cpp
index 0dadb9737..b98b9eb67 100644
--- a/src/resources/wallpaper.cpp
+++ b/src/resources/wallpaper.cpp
@@ -26,7 +26,7 @@
#include "resources/wallpaperdata.h"
-#include "utils/physfstools.h"
+#include "utils/virtfs.h"
#include <algorithm>
@@ -54,21 +54,21 @@ static void initDefaultWallpaperPaths()
// Init the path
wallpaperPath = branding.getStringValue("wallpapersPath");
- if (wallpaperPath.empty() || !PhysFs::isDirectory(wallpaperPath.c_str()))
+ if (wallpaperPath.empty() || !VirtFs::isDirectory(wallpaperPath.c_str()))
wallpaperPath = paths.getValue("wallpapers", "");
- if (wallpaperPath.empty() || !PhysFs::isDirectory(wallpaperPath.c_str()))
+ if (wallpaperPath.empty() || !VirtFs::isDirectory(wallpaperPath.c_str()))
wallpaperPath = "graphics/images/";
// Init the default file
wallpaperFile = branding.getStringValue("wallpaperFile");
- if (!wallpaperFile.empty() && !PhysFs::isDirectory(wallpaperFile.c_str()))
+ if (!wallpaperFile.empty() && !VirtFs::isDirectory(wallpaperFile.c_str()))
return;
else
wallpaperFile = paths.getValue("wallpaperFile", "");
- if (wallpaperFile.empty() || PhysFs::isDirectory(wallpaperFile.c_str()))
+ if (wallpaperFile.empty() || VirtFs::isDirectory(wallpaperFile.c_str()))
wallpaperFile = "login_wallpaper.png";
}
@@ -84,7 +84,7 @@ void Wallpaper::loadWallpapers()
{
wallpaperData.clear();
initDefaultWallpaperPaths();
- char **const imgs = PhysFs::enumerateFiles(wallpaperPath.c_str());
+ char **const imgs = VirtFs::enumerateFiles(wallpaperPath.c_str());
for (char *const *i = imgs; *i; i++)
{
@@ -121,7 +121,7 @@ void Wallpaper::loadWallpapers()
}
}
- PhysFs::freeList(imgs);
+ VirtFs::freeList(imgs);
std::sort(wallpaperData.begin(), wallpaperData.end(), &wallpaperCompare);
}