summaryrefslogtreecommitdiff
path: root/src/fs/virtfstools.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-28 22:49:10 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-28 22:49:10 +0300
commitdb31c2f832dd4067e4670dd469fe3b696188576b (patch)
tree7ed857adddd833cfd5087ee6c22e408637301c5c /src/fs/virtfstools.h
parent6583c1a039a28a41a865b02598e6da9521046325 (diff)
downloadManaVerse-db31c2f832dd4067e4670dd469fe3b696188576b.tar.gz
ManaVerse-db31c2f832dd4067e4670dd469fe3b696188576b.tar.bz2
ManaVerse-db31c2f832dd4067e4670dd469fe3b696188576b.tar.xz
ManaVerse-db31c2f832dd4067e4670dd469fe3b696188576b.zip
Add configure flag for use physfs.
New configure option: --without-physfs For now manaplus cant be compiled without physfs.
Diffstat (limited to 'src/fs/virtfstools.h')
-rw-r--r--src/fs/virtfstools.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fs/virtfstools.h b/src/fs/virtfstools.h
index 3271fee6f..383327404 100644
--- a/src/fs/virtfstools.h
+++ b/src/fs/virtfstools.h
@@ -51,18 +51,20 @@ namespace VirtFs
std::string loadTextFileString(const std::string &fileName);
} // namespace VirtFs
+#ifdef USE_PHYSFS
// +++ temporary add it here
-namespace VirtFsDir
+namespace VirtFsPhys
{
void getFiles(const std::string &path,
StringVect &list);
} // namespace VirtFs
-
+#else // USE_PHYSFS
// +++ temporary add it here
-namespace VirtFsPhys
+namespace VirtFsDir
{
void getFiles(const std::string &path,
StringVect &list);
} // namespace VirtFs
+#endif // USE_PHYSFS
#endif // UTILS_VIRTFSTOOLS_H