34 std::unique_ptr<AssetCatalogService> new_catalog_service = std::make_unique<AssetCatalogService>(
39 if (reload_nested_catalogs) {
43 new_catalog_service->add_from_existing(
47 if (existing.path == to_be_ignored.path) {
50 "multiple definitions of catalog %s (path: %s), ignoring duplicate",
51 existing.catalog_id.str().c_str(),
52 existing.path.c_str());
56 "multiple definitions of catalog %s with differing paths (%s vs. %s), "
57 "ignoring second one",
58 existing.catalog_id.str().c_str(),
59 existing.path.c_str(),
60 to_be_ignored.path.c_str());
66 std::lock_guard
lock{catalog_service_mutex_};
67 catalog_service_ = std::move(new_catalog_service);
68 catalogs_dirty_ =
false;