@@ -1002,17 +1002,12 @@ Asset* Content::load(const Guid& id, const ScriptingTypeHandle& type, AssetInfo&
|
||||
}
|
||||
|
||||
#if ASSETS_LOADING_EXTRA_VERIFICATION
|
||||
|
||||
// Ensure we have valid asset info
|
||||
ASSERT(assetInfo.TypeName.HasChars() && assetInfo.Path.HasChars());
|
||||
|
||||
// Check if file exists
|
||||
if (!FileSystem::FileExists(assetInfo.Path))
|
||||
{
|
||||
LOG(Error, "Cannot find file '{0}'", assetInfo.Path);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
// Find asset factory based in its type
|
||||
|
||||
@@ -35,6 +35,11 @@ namespace FlaxEngine
|
||||
return null;
|
||||
|
||||
var dataTypeName = DataTypeName;
|
||||
if (string.IsNullOrEmpty(dataTypeName))
|
||||
{
|
||||
Debug.LogError(string.Format("Missing typename of data in Json asset '{0}'.", Path), this);
|
||||
return null;
|
||||
}
|
||||
var assemblies = AppDomain.CurrentDomain.GetAssemblies();
|
||||
for (int i = 0; i < assemblies.Length; i++)
|
||||
{
|
||||
|
||||
@@ -15,6 +15,7 @@ REGISTER_JSON_ASSET(LocalizedStringTable, "FlaxEngine.LocalizedStringTable", tru
|
||||
LocalizedStringTable::LocalizedStringTable(const SpawnParams& params, const AssetInfo* info)
|
||||
: JsonAssetBase(params, info)
|
||||
{
|
||||
DataTypeName = TypeName;
|
||||
}
|
||||
|
||||
void LocalizedStringTable::AddString(const StringView& id, const StringView& value)
|
||||
|
||||
Reference in New Issue
Block a user