| 549 | } |
| 550 | |
| 551 | bool AssetsCache::RenameAsset(const StringView& oldPath, const StringView& newPath) |
| 552 | { |
| 553 | bool result = false; |
| 554 | ASSETS_CACHE_LOCK(); |
| 555 | for (auto i = _registry.Begin(); i.IsNotEnd(); ++i) |
| 556 | { |
| 557 | if (i->Value.Info.Path == oldPath) |
| 558 | { |
| 559 | i->Value.Info.Path = newPath; |
| 560 | _isDirty = true; |
| 561 | result = true; |
| 562 | break; |
| 563 | } |
| 564 | } |
| 565 | return result; |
| 566 | } |
| 567 | |
| 568 | #endif |
| 569 |