From cfb75b015a4e70843e571ce599e11bf2990abc1b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 May 2017 02:41:29 +0300 Subject: Add subdir support into VirtFs::getRealDir. --- src/fs/virtfs/fsdir.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/fs/virtfs/fsdir.cpp') 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(entry); - if (Files::existsLocal(dirEntry->root + filename)) + if (Files::existsLocal(dirEntry->root + entry->subDir + filename)) { realDir = dirEntry->userDir; return true; -- cgit v1.2.3-70-g09d2