1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-06-16 23:30:44 +03:00

Fixed bug making pipelines and languages invisible in Materials folder

This commit is contained in:
Graham Nelson 2021-04-12 22:30:39 +01:00
parent eec32b0f4b
commit 3e5107bb90
2 changed files with 4 additions and 2 deletions

View file

@ -86,6 +86,7 @@ void PipelineManager::search_nest_for(inbuild_genre *gen, inbuild_nest *N,
inbuild_requirement *req, linked_list *search_results) {
if ((req->work->genre) && (req->work->genre != pipeline_genre)) return;
pathname *P = PipelineManager::path_within_nest(N);
LOG("Looking in %p\n", P);
scan_directory *D = Directories::open(P);
if (D) {
TEMPORARY_TEXT(LEAFNAME)

View file

@ -61,8 +61,9 @@ void Projects::scan(inbuild_copy *C) {
else
M = Projects::materialise_pathname(
P, Filenames::get_leafname(proj->as_copy->location_if_file));
proj->materials_nest = Nests::new(M);
Nests::set_tag(proj->materials_nest, MATERIALS_NEST_TAG);
proj->materials_nest = Supervisor::add_nest(M, MATERIALS_NEST_TAG);
// proj->materials_nest = Nests::new(M);
// Nests::set_tag(proj->materials_nest, MATERIALS_NEST_TAG);
proj->search_list = NEW_LINKED_LIST(inbuild_nest);
proj->primary_source = NULL;
proj->extensions_included = NEW_LINKED_LIST(inform_extension);