aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_treat_args.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_treat_args.c')
-rw-r--r--src/ft_treat_args.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/ft_treat_args.c b/src/ft_treat_args.c
index 79eedae..a47f9f7 100644
--- a/src/ft_treat_args.c
+++ b/src/ft_treat_args.c
@@ -31,18 +31,17 @@ uint8_t
uint8_t
ft_use_args(int argc, const char *argv[], char *const envp[], t_cub *clist)
{
+ clist->envp = envp;
if (argc < 3)
{
if (ft_init_winptr(clist) < 0)
+ {
return (ft_exit(FT_RET_FAILED_MLX, clist));
+ }
ft_draw_scene(clist);
if (clist->mlist.ismusic)
{
- /* create music fork() here */
- clist->isoldmus = 1;
- clist->mpid = fork();
- if (clist->mpid == 0)
- ft_music_fork(clist->mlist.mcmd_words, envp);
+ ft_enable_music(clist);
}
ft_hooks_and_loops(&clist->wlist, clist);
}