| 1389 | } |
| 1390 | |
| 1391 | Result GetDescriptor(HFactory factory, const char* name, HResourceDescriptor* descriptor) |
| 1392 | { |
| 1393 | char canonical_path[RESOURCE_PATH_MAX]; |
| 1394 | GetCanonicalPath(name, canonical_path, sizeof(canonical_path)); |
| 1395 | |
| 1396 | uint64_t canonical_path_hash = dmHashBuffer64(canonical_path, strlen(canonical_path)); |
| 1397 | return GetDescriptorByHash(factory, canonical_path_hash, descriptor); |
| 1398 | } |
| 1399 | |
| 1400 | Result GetDescriptorWithExt(HFactory factory, uint64_t hashed_name, const uint64_t* exts, uint32_t ext_count, HResourceDescriptor* descriptor) |
| 1401 | { |