From 8202df9a6308554be3becb132ee63cab089b6f34 Mon Sep 17 00:00:00 2001 From: tTh Date: Wed, 13 Nov 2024 13:37:54 +0100 Subject: [PATCH] check for the export directory (singlepass) --- Fonderie/singlepass.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Fonderie/singlepass.c b/Fonderie/singlepass.c index 9723af9..68a8946 100644 --- a/Fonderie/singlepass.c +++ b/Fonderie/singlepass.c @@ -13,6 +13,7 @@ #include "../floatimg.h" +#include "utilfuncs.h" #include "crapulator.h" #include "filterstack.h" #include "single.h" @@ -198,6 +199,13 @@ if (repeat < 1) { exit(2); } +foo = check_if_export_dir_is_valid(outdir, 0); +if ( !foo ) { + fprintf(stderr, "** export dir (%s) not valid\n", outdir); + fprintf(stderr, "** may be you have to create it ?\n"); + exit(1); + } + foo = parse_filter_chain(FILTERS, filterchain); if (foo) { fprintf(stderr, "err %d in parse_filter_chain\n", foo);