From d68996487117fee33bd6301f66c06611e57f0c71 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 6 Mar 2020 22:08:37 +0100 Subject: okok --- src/ft_music.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/ft_music.c b/src/ft_music.c index 3104978..c3b90b1 100644 --- a/src/ft_music.c +++ b/src/ft_music.c @@ -13,17 +13,11 @@ #include #include +#include void ft_music_fork(char **mcmd_words, char *const envp[]) { - if (FT_OS == 1) - { - execve("/usr/bin/afplay", mcmd_words, envp); - } - else - { - execve("/usr/bin/aplay", mcmd_words, envp); - } + execve(*(mcmd_words + 0), mcmd_words, envp); } void -- cgit v1.2.3