Merge remote-tracking branch 'origin/master' into localization
# Conflicts: # Source/Platforms/DotNet/Newtonsoft.Json.dll # Source/Platforms/DotNet/Newtonsoft.Json.pdb # Source/Platforms/UWP/Binaries/Newtonsoft.Json.dll # Source/Platforms/XboxOne/Binaries/Newtonsoft.Json.dll
This commit is contained in:
@@ -44,6 +44,18 @@ bool CreateJson::Create(const StringView& path, StringAnsiView& data, StringAnsi
|
||||
LOG(Warning, "Asset will have different type name {0} -> {1}", typeName, String(dataTypename.Get()));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
const String directory = StringUtils::GetDirectoryName(path);
|
||||
if (!FileSystem::DirectoryExists(directory))
|
||||
{
|
||||
if (FileSystem::CreateDirectory(directory))
|
||||
{
|
||||
LOG(Warning, "Failed to create directory");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
rapidjson_flax::StringBuffer buffer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user