fix bug on subdirfs if path is absolute
This commit is contained in:
parent
7541651a06
commit
8e4ec4ee3e
|
@ -32,7 +32,7 @@ namespace Tesses::Framework::Filesystem
|
||||||
SubdirFilesystem::SubdirFilesystem(VFS* parent, VFSPath path, bool owns)
|
SubdirFilesystem::SubdirFilesystem(VFS* parent, VFSPath path, bool owns)
|
||||||
{
|
{
|
||||||
this->parent = parent;
|
this->parent = parent;
|
||||||
if(dynamic_cast<LocalFilesystem*>(parent) != nullptr)
|
if(path.relative && dynamic_cast<LocalFilesystem*>(parent) != nullptr)
|
||||||
{
|
{
|
||||||
Tesses::Framework::Filesystem::LocalFilesystem lfs;
|
Tesses::Framework::Filesystem::LocalFilesystem lfs;
|
||||||
auto curDir = std::filesystem::current_path();
|
auto curDir = std::filesystem::current_path();
|
||||||
|
|
Loading…
Reference in New Issue