MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / FastTmpAssetClone

Method FastTmpAssetClone

Source/Engine/Content/Content.cpp:977–988  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

975}
976
977bool Content::FastTmpAssetClone(const StringView& path, String& resultPath)
978{
979 ASSERT(path.HasChars());
980
981 const String dstPath = Globals::TemporaryFolder / Guid::New().ToString(Guid::FormatType::D) + ASSET_FILES_EXTENSION_WITH_DOT;
982
983 if (CloneAssetFile(dstPath, path, Guid::New()))
984 return true;
985
986 resultPath = dstPath;
987 return false;
988}
989
990class CloneAssetFileTask : public MainThreadTask
991{

Callers

nothing calls this directly

Calls 3

NewFunction · 0.50
HasCharsMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected