| 83 | extern bool shadow_cache_dirty; |
| 84 | |
| 85 | void LoadGenericEntity(const Path& path, EntityDescriptionList& desc_list) { |
| 86 | TiXmlDocument doc(path.GetFullPath()); |
| 87 | if (!doc.LoadFile()) { |
| 88 | DisplayError("Error", ("Bad xml format in " + path.GetFullPathStr()).c_str()); |
| 89 | return; |
| 90 | } |
| 91 | EntityType type = CheckGenericType(doc); |
| 92 | EntityDescription desc; |
| 93 | desc.AddEntityType(EDF_ENTITY_TYPE, type); |
| 94 | desc.AddString(EDF_FILE_PATH, path.GetOriginalPath()); |
| 95 | desc_list.push_back(desc); |
| 96 | } |
| 97 | |
| 98 | void LoadGenericEntity(const std::string& rel_path, EntityDescriptionList& desc_list) { |
| 99 | Path p = FindFilePath(rel_path.c_str(), kDataPaths | kModPaths | kAbsPath); |
no test coverage detected