summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-27 20:16:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-27 20:34:10 +0300
commit07584b8e1748893f6f0a3464b7181a6dc80bddbc (patch)
tree986bd31f2a7eb6b414e4cab04115eab20ddbb357
parent8676d623ec8f395194f4a9e93cfbbccc969a0d03 (diff)
downloadmanaverse-07584b8e1748893f6f0a3464b7181a6dc80bddbc.tar.gz
manaverse-07584b8e1748893f6f0a3464b7181a6dc80bddbc.tar.bz2
manaverse-07584b8e1748893f6f0a3464b7181a6dc80bddbc.tar.xz
manaverse-07584b8e1748893f6f0a3464b7181a6dc80bddbc.zip
Use own base and user dirs in virtfs.
-rw-r--r--src/fs/virtfs.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fs/virtfs.cpp b/src/fs/virtfs.cpp
index 6aee3b76a..821adac84 100644
--- a/src/fs/virtfs.cpp
+++ b/src/fs/virtfs.cpp
@@ -20,6 +20,7 @@
#include "fs/virtfs.h"
+#include "fs/virtfsdir.h"
#include "fs/virtfsphys.h"
#include "fs/virtfile.h"
#include "fs/virtfsfuncs.h"
@@ -34,6 +35,7 @@ namespace VirtFs
void init(const std::string &restrict name)
{
VirtFsPhys::init(name);
+ VirtFsDir::init(name);
updateDirSeparator();
}
@@ -53,12 +55,12 @@ namespace VirtFs
const char *getBaseDir()
{
- return VirtFsPhys::getBaseDir();
+ return VirtFsDir::getBaseDir();
}
const char *getUserDir()
{
- return VirtFsPhys::getUserDir();
+ return VirtFsDir::getUserDir();
}
bool exists(const std::string &restrict name)