29 std::unique_ptr<AssetCatalogService> new_catalog_service = std::make_unique<AssetCatalogService>(
34 if (reload_nested_catalogs) {
38 new_catalog_service->add_from_existing(
42 if (existing.path == to_be_ignored.path) {
45 "multiple definitions of catalog %s (path: %s), ignoring duplicate",
46 existing.catalog_id.str().c_str(),
47 existing.path.c_str());
51 "multiple definitions of catalog %s with differing paths (%s vs. %s), "
52 "ignoring second one",
53 existing.catalog_id.str().c_str(),
54 existing.path.c_str(),
55 to_be_ignored.path.c_str());
61 std::lock_guard
lock{catalog_service_mutex_};
62 catalog_service_ = std::move(new_catalog_service);
63 catalogs_dirty_ =
false;