From a35b258841cde7884f5bb71d5ae0951d5e3f27b7 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 6 Mar 2020 19:03:24 +0100 Subject: fork(3) going well, freed a leak --- inc/cub3d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index 7b57942..ea55faf 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -119,7 +119,7 @@ uint8_t ft_use_args(int argc, const char *argv[], t_cub *clist); */ void ft_set_minimap_scale(t_cub *clist); -void *ft_music_thread(void *vargp); +void ft_music_fork(char *music_cmd); void ft_detect(t_cub *cl); void ft_castray(t_cub *cl); int8_t ft_save_to_bmp(t_cub *cl); -- cgit v1.2.3 From 6a89966eed6110d0e7a7ec53727c4473d18ad441 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 6 Mar 2020 20:43:42 +0100 Subject: Fuck execve --- inc/cub3d.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index ea55faf..ef05364 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -119,7 +119,7 @@ uint8_t ft_use_args(int argc, const char *argv[], t_cub *clist); */ void ft_set_minimap_scale(t_cub *clist); -void ft_music_fork(char *music_cmd); +void ft_music_fork(char **mcmd_words); void ft_detect(t_cub *cl); void ft_castray(t_cub *cl); int8_t ft_save_to_bmp(t_cub *cl); -- cgit v1.2.3 From 874d8d3bbafb3d1919cfc6f21fdb780382f0d015 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 6 Mar 2020 21:03:07 +0100 Subject: boy --- inc/cub3d.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index ef05364..b552b38 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -112,14 +112,15 @@ size_t ft_get_line_len(char *line); */ uint8_t ft_check_map_arg(int argc, const char *argv[]); -uint8_t ft_use_args(int argc, const char *argv[], t_cub *clist); +uint8_t ft_use_args(int argc, const char *argv[], + char *const envp[], t_cub *clist); /* ** ====== OTHER ====== */ void ft_set_minimap_scale(t_cub *clist); -void ft_music_fork(char **mcmd_words); +void ft_music_fork(char **mcmd_words, char *const envp[]); void ft_detect(t_cub *cl); void ft_castray(t_cub *cl); int8_t ft_save_to_bmp(t_cub *cl); -- cgit v1.2.3 From 3048aae5d3f50359f19e0d440376ae422a16a7b7 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 6 Mar 2020 21:47:09 +0100 Subject: Good enough --- inc/cub3d.h | 1 + 1 file changed, 1 insertion(+) (limited to 'inc/cub3d.h') diff --git a/inc/cub3d.h b/inc/cub3d.h index b552b38..6078801 100644 --- a/inc/cub3d.h +++ b/inc/cub3d.h @@ -120,6 +120,7 @@ uint8_t ft_use_args(int argc, const char *argv[], */ void ft_set_minimap_scale(t_cub *clist); +void ft_enable_music(t_cub *cl); void ft_music_fork(char **mcmd_words, char *const envp[]); void ft_detect(t_cub *cl); void ft_castray(t_cub *cl); -- cgit v1.2.3