MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / add_model_files

Method add_model_files

src/framework/assets/resource_bundle.cpp:55–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53 }
54}
55
56void ResourceBundle::add_model_file(std::string id, const std::filesystem::path & relative_path) {
57 add_file(std::move(id), resolve_model_file(model_root_, relative_path));
58}
59
60bool ResourceBundle::add_optional_model_file(std::string id, const std::filesystem::path & relative_path) {
61 const auto path = resolve_model_file(model_root_, relative_path);
62 if (!engine::io::is_existing_file(path)) {
63 return false;
64 }
65 add_file(std::move(id), path);
66 return true;

Callers 9

make_resource_bundleFunction · 0.80
make_resource_bundleFunction · 0.80
load_submodelFunction · 0.80
make_resource_bundleFunction · 0.80
load_pocket_tts_assetsFunction · 0.80
make_resource_bundleFunction · 0.80
load_sortformer_assetsFunction · 0.80
make_resource_bundleFunction · 0.80
make_resource_bundleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected