diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-16 02:41:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-16 02:41:29 +0300 |
commit | cfb75b015a4e70843e571ce599e11bf2990abc1b (patch) | |
tree | 6ad173a6e0343364fc5ee747171f652b49ff4cce /src/fs/virtfs/fsdir.cpp | |
parent | 24bd6a6d26bab89126db7183bb693779a1742c6d (diff) | |
download | manaplus-cfb75b015a4e70843e571ce599e11bf2990abc1b.tar.gz manaplus-cfb75b015a4e70843e571ce599e11bf2990abc1b.tar.bz2 manaplus-cfb75b015a4e70843e571ce599e11bf2990abc1b.tar.xz manaplus-cfb75b015a4e70843e571ce599e11bf2990abc1b.zip |
Add subdir support into VirtFs::getRealDir.
Diffstat (limited to 'src/fs/virtfs/fsdir.cpp')
-rw-r--r-- | src/fs/virtfs/fsdir.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/fs/virtfs/fsdir.cpp b/src/fs/virtfs/fsdir.cpp index f7642c72c..39c26b1b0 100644 --- a/src/fs/virtfs/fsdir.cpp +++ b/src/fs/virtfs/fsdir.cpp @@ -168,12 +168,12 @@ namespace FsDir } bool getRealDir(FsEntry *restrict const entry, - const std::string &filename, - const std::string &dirName A_UNUSED, + std::string filename, + std::string dirName A_UNUSED, std::string &realDir) { DirEntry *const dirEntry = static_cast<DirEntry*>(entry); - if (Files::existsLocal(dirEntry->root + filename)) + if (Files::existsLocal(dirEntry->root + entry->subDir + filename)) { realDir = dirEntry->userDir; return true; |