From 1c21a64308ba3598654d2dbb70dea73b45df028d Mon Sep 17 00:00:00 2001 From: Pierre Guillot Date: Wed, 18 Sep 2019 12:09:15 +0200 Subject: [PATCH] Hide the command console on Windows used to open the file #6 --- src/faustgen_tilde.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/faustgen_tilde.c b/src/faustgen_tilde.c index 3c45633..255fb45 100644 --- a/src/faustgen_tilde.c +++ b/src/faustgen_tilde.c @@ -142,13 +142,23 @@ static void faustgen_tilde_open_texteditor(t_faustgen_tilde *x) char temp[MAXPDSTRING]; sys_bashfilename(faust_opt_manager_get_full_path(x->f_opt_manager, x->f_dsp_name->s_name), temp); sprintf(message, "\"%s\"", temp); + WinExec(message, SW_HIDE); + return; #elif __APPLE__ sprintf(message, "open -t %s", faust_opt_manager_get_full_path(x->f_opt_manager, x->f_dsp_name->s_name)); + if(system(message)) + { + + } + return; #else sprintf(message, "xdg-open %s", faust_opt_manager_get_full_path(x->f_opt_manager, x->f_dsp_name->s_name)); -#endif - system(message); + if(system(message)) + { + + } return; +#endif } pd_error(x, "faustgen~: no FAUST DSP file defined"); }