summaryrefslogtreecommitdiff
path: root/src/resources/wallpaper.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-18 01:07:09 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-18 01:07:09 +0300
commit566ce2ee769e863977d57ba156a281ade5cb9c05 (patch)
tree57c7fed83e2fa35588bd488431dd1129cf2345c3 /src/resources/wallpaper.cpp
parent1c119959b43d7dde5291ea5ae5d70b59e72b8c10 (diff)
downloadmanaverse-566ce2ee769e863977d57ba156a281ade5cb9c05.tar.gz
manaverse-566ce2ee769e863977d57ba156a281ade5cb9c05.tar.bz2
manaverse-566ce2ee769e863977d57ba156a281ade5cb9c05.tar.xz
manaverse-566ce2ee769e863977d57ba156a281ade5cb9c05.zip
move most direct calls to physfs to separate file.
Diffstat (limited to 'src/resources/wallpaper.cpp')
-rw-r--r--src/resources/wallpaper.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/resources/wallpaper.cpp b/src/resources/wallpaper.cpp
index 381fe7466..9c694ece9 100644
--- a/src/resources/wallpaper.cpp
+++ b/src/resources/wallpaper.cpp
@@ -22,13 +22,13 @@
#include "resources/wallpaper.h"
-#include "resources/resourcemanager.h"
+#include "configuration.h"
#include "logger.h"
-#include "utils/stringutils.h"
-#include "configuration.h"
+#include "resources/resourcemanager.h"
-#include <physfs.h>
+#include "utils/physfstools.h"
+#include "utils/stringutils.h"
#include <algorithm>
#include <cstring>
@@ -92,7 +92,7 @@ void Wallpaper::loadWallpapers()
initDefaultWallpaperPaths();
- char **imgs = PHYSFS_enumerateFiles(wallpaperPath.c_str());
+ char **imgs = PhysFs::enumerateFiles(wallpaperPath.c_str());
for (char **i = imgs; *i; i++)
{
@@ -130,7 +130,7 @@ void Wallpaper::loadWallpapers()
}
}
- PHYSFS_freeList(imgs);
+ PhysFs::freeList(imgs);
std::sort(wallpaperData.begin(), wallpaperData.end(), wallpaperCompare);
}