mirror of
https://git.tesses.org/tesses50/crosslang.git
synced 2026-08-02 00:25:32 +00:00
Rework for git.tesses.org, GC* is std::shared_ptr maybe will fix crash during exit
This commit is contained in:
@@ -70,6 +70,29 @@ namespace Tesses::CrossLang {
|
||||
{
|
||||
auto vfs = std::get<std::shared_ptr<Tesses::Framework::Filesystem::VFS>>(instance);
|
||||
auto tmpFS=std::dynamic_pointer_cast<Tesses::Framework::Filesystem::TempFS>(vfs);
|
||||
auto relative = std::dynamic_pointer_cast<Tesses::Framework::Filesystem::RelativeFilesystem>(vfs);
|
||||
auto myFS = std::dynamic_pointer_cast<TObjectVFS>(vfs);
|
||||
if(relative)
|
||||
{
|
||||
if(key == "Working")
|
||||
{
|
||||
cse.back()->Push(gc, relative->GetWorking());
|
||||
return false;
|
||||
}
|
||||
if(key == "Filesystem")
|
||||
{
|
||||
cse.back()->Push(gc, relative->GetVFS());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(myFS)
|
||||
{
|
||||
if(key == "Inner")
|
||||
{
|
||||
cse.back()->Push(gc, myFS->obj);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(tmpFS)
|
||||
{
|
||||
if(key == "TempDirectoryName")
|
||||
|
||||
Reference in New Issue
Block a user