summaryrefslogtreecommitdiff
path: root/src/fs/virtfszip.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-03-01 00:09:28 +0300
committerAndrei Karas <akaras@inbox.ru>2017-03-01 00:09:28 +0300
commitaf8edd3f2f53cb2ece9a7b1f6a62bd5e7ce57a9a (patch)
tree0074b8eb5fea7f48f44dd81bc5089316e81aafd0 /src/fs/virtfszip.cpp
parentdb31c2f832dd4067e4670dd469fe3b696188576b (diff)
downloadmanaplus-af8edd3f2f53cb2ece9a7b1f6a62bd5e7ce57a9a.tar.gz
manaplus-af8edd3f2f53cb2ece9a7b1f6a62bd5e7ce57a9a.tar.bz2
manaplus-af8edd3f2f53cb2ece9a7b1f6a62bd5e7ce57a9a.tar.xz
manaplus-af8edd3f2f53cb2ece9a7b1f6a62bd5e7ce57a9a.zip
Impliment some functions in VirtFs with physfs disabled.
Diffstat (limited to 'src/fs/virtfszip.cpp')
-rw-r--r--src/fs/virtfszip.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/fs/virtfszip.cpp b/src/fs/virtfszip.cpp
index dc8223b6f..538eb7513 100644
--- a/src/fs/virtfszip.cpp
+++ b/src/fs/virtfszip.cpp
@@ -261,7 +261,14 @@ namespace VirtFsZip
return false;
}
- VirtList *enumerateFiles(std::string dirName)
+ VirtList *enumerateFiles(const std::string &dirName)
+ {
+ VirtList *const list = new VirtList;
+ return enumerateFiles(dirName, list);
+ }
+
+ VirtList *enumerateFiles(std::string dirName,
+ VirtList *const list)
{
prepareFsPath(dirName);
VirtList *const list = new VirtList;