From b744a677218df528502b5eb769a52ef294ebbac6 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 13 Mar 2020 01:44:22 +0100 Subject: Added sound effects files --- src/ft_check_missing.c | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) (limited to 'src/ft_check_missing.c') diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c index d01a77f..e349d05 100644 --- a/src/ft_check_missing.c +++ b/src/ft_check_missing.c @@ -23,6 +23,26 @@ int return (ft_exit(FT_ERR_MISSING, clist)); } +static int + ft_check_missing_sfx(t_cub *clist) +{ + if (ft_check_not_found(FT_SFX_DEATH_PATH) < 0) + return (ft_missing_error(FT_MISS_SFX_DEATH, clist)); + if (ft_check_not_found(FT_SFX_FS_ONE_PATH) < 0) + return (ft_missing_error(FT_ERR_MISS_SFX_FS_ONE, clist)); + if (ft_check_not_found(FT_SFX_FS_TWO_PATH) < 0) + return (ft_missing_error(FT_ERR_MISS_SFX_FS_TWO, clist)); + if (ft_check_not_found(FT_SFX_N_LVL_PATH) < 0) + return (ft_missing_error(FT_ERR_MISS_SFX_N_LVL, clist)); + if (ft_check_not_found(FT_SFX_SCR_ONE_PATH) < 0) + return (ft_missing_error(FT_ERR_MISS_SFX_SCR_ONE, clist)); + if (ft_check_not_found(FT_SFX_SCR_TWO_PATH) < 0) + return (ft_missing_error(FT_ERR_MISS_SFX_SCR_TWO, clist)); + if (ft_check_not_found(FT_SFX_TRAP_PATH) < 0) + return (ft_missing_error(FT_ERR_MISS_SFX_TRAP, clist)); + return (0); +} + static int ft_check_missing_sprites(t_cub *clist) { @@ -35,7 +55,7 @@ static int return (ft_missing_error(FT_ERR_MISS_SPRITE, clist)); i++; } - return (0); + return (ft_check_missing_sfx(clist)); } static int -- cgit v1.2.3