Index: footprint.c =================================================================== --- footprint.c (revision 25226) +++ footprint.c (revision 25227) @@ -306,7 +306,7 @@ int res; FILE *f; - f = pcb_fopen(fn, "w"); + f = pcb_fopen(&PCB->hidlib, fn, "w"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "tedax_fp_save(): can't open %s for writing\n", fn); return -1; @@ -635,7 +635,7 @@ FILE *f; int ret = 0; - f = pcb_fopen(fn, "r"); + f = pcb_fopen(&PCB->hidlib, fn, "r"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "can't open file '%s' for read\n", fn); return -1; Index: stackup.c =================================================================== --- stackup.c (revision 25226) +++ stackup.c (revision 25227) @@ -333,7 +333,7 @@ FILE *f; tedax_stackup_t ctx; - f = pcb_fopen(fn, "w"); + f = pcb_fopen(&PCB->hidlib, fn, "w"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "tedax_stackup_save(): can't open %s for writing\n", fn); return -1; @@ -416,7 +416,7 @@ FILE *f; tedax_stackup_t ctx; - f = pcb_fopen(fn, "r"); + f = pcb_fopen(&PCB->hidlib, fn, "r"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "tedax_stackup_load(): can't open %s for reading\n", fn); return -1; Index: tboard.c =================================================================== --- tboard.c (revision 25226) +++ tboard.c (revision 25227) @@ -256,7 +256,7 @@ int res; FILE *f; - f = pcb_fopen(fn, "w"); + f = pcb_fopen(&PCB->hidlib, fn, "w"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "tedax_board_save(): can't open %s for writing\n", fn); return -1; @@ -543,7 +543,7 @@ int res; FILE *f; - f = pcb_fopen(fn, "r"); + f = pcb_fopen(&PCB->hidlib, fn, "r"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "tedax_board_load(): can't open %s for reading\n", fn); return -1; Index: tdrc.c =================================================================== --- tdrc.c (revision 25226) +++ tdrc.c (revision 25227) @@ -77,7 +77,7 @@ int res; FILE *f; - f = pcb_fopen(fn, "w"); + f = pcb_fopen(&PCB->hidlib, fn, "w"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "tedax_drc_save(): can't open %s for writing\n", fn); return -1; @@ -133,7 +133,7 @@ int res; FILE *f; - f = pcb_fopen(fn, "r"); + f = pcb_fopen(&PCB->hidlib, fn, "r"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "tedax_drc_load(): can't open %s for reading\n", fn); return -1; Index: tlayer.c =================================================================== --- tlayer.c (revision 25226) +++ tlayer.c (revision 25227) @@ -129,7 +129,7 @@ int res; FILE *f; - f = pcb_fopen(fn, "w"); + f = pcb_fopen(&PCB->hidlib, fn, "w"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "tedax_layer_save(): can't open %s for writing\n", fn); return -1; @@ -365,7 +365,7 @@ int res; FILE *f; - f = pcb_fopen(fn, "r"); + f = pcb_fopen(&PCB->hidlib, fn, "r"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "tedax_layers_load(): can't open %s for reading\n", fn); return -1; Index: tnetlist.c =================================================================== --- tnetlist.c (revision 25226) +++ tnetlist.c (revision 25227) @@ -129,7 +129,7 @@ FILE *fn; int ret = 0; - fn = pcb_fopen(fname_net, "r"); + fn = pcb_fopen(&PCB->hidlib, fname_net, "r"); if (fn == NULL) { pcb_message(PCB_MSG_ERROR, "can't open file '%s' for read\n", fname_net); return -1; @@ -205,7 +205,7 @@ int res; FILE *f; - f = pcb_fopen(fn, "w"); + f = pcb_fopen(&PCB->hidlib, fn, "w"); if (f == NULL) { pcb_message(PCB_MSG_ERROR, "tedax_net_save(): can't open %s for writing\n", fn); return -1;