fixup! Loading screen that preloads the entire game based on what's in the "PreloadResources" file. The file is filled automatically with resources that are hot-loaded to make the next launch load more complete.
This commit is contained in:
@@ -165,7 +165,7 @@ void ResourceManager::Preload(std::string resourceName)
|
|||||||
auto resourceTypename = typeid(T).name();
|
auto resourceTypename = typeid(T).name();
|
||||||
auto it = m_CompilerTypenameToResourceType.find(resourceTypename);
|
auto it = m_CompilerTypenameToResourceType.find(resourceTypename);
|
||||||
if (it == m_CompilerTypenameToResourceType.end()) {
|
if (it == m_CompilerTypenameToResourceType.end()) {
|
||||||
LOG_ERROR("Failed to load resource \"%s\" of type \"%s\": type not registered", resourceName.c_str(), resourceType);
|
LOG_ERROR("Failed to load resource \"%s\" of type \"%s\": type not registered", resourceName.c_str(), resourceTypename);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user