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) {
49 "multiple definitions of catalog %s (path: %s), ignoring duplicate",
50 existing.catalog_id.str().c_str(),
51 existing.path.c_str());
55 "multiple definitions of catalog %s with differing paths (%s vs. %s), "
56 "ignoring second one",
57 existing.catalog_id.str().c_str(),
58 existing.path.c_str(),
59 to_be_ignored.path.c_str());
65 std::lock_guard
lock{catalog_service_mutex_};
66 catalog_service_ = std::move(new_catalog_service);
67 catalogs_dirty_ =
false;