diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 03:11:12 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-13 03:11:12 +0100 |
commit | a90c6f5cafbc47c7380d932d8db7bffd9b8b72bf (patch) | |
tree | 4e7044b92a3e97a338aaf769fe2b55d63e69338b /src/ft_check_missing.c | |
parent | Removed beta minilibx make options (diff) | |
download | 42-cub3d-a90c6f5cafbc47c7380d932d8db7bffd9b8b72bf.tar.gz 42-cub3d-a90c6f5cafbc47c7380d932d8db7bffd9b8b72bf.tar.bz2 42-cub3d-a90c6f5cafbc47c7380d932d8db7bffd9b8b72bf.tar.xz 42-cub3d-a90c6f5cafbc47c7380d932d8db7bffd9b8b72bf.tar.zst 42-cub3d-a90c6f5cafbc47c7380d932d8db7bffd9b8b72bf.zip |
sounds
Diffstat (limited to 'src/ft_check_missing.c')
-rw-r--r-- | src/ft_check_missing.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/ft_check_missing.c b/src/ft_check_missing.c index 1e89781..f9df88f 100644 --- a/src/ft_check_missing.c +++ b/src/ft_check_missing.c @@ -26,19 +26,26 @@ int static int ft_check_missing_sfx(t_cub *clist) { - if (ft_check_not_found(FT_SFX_DEATH_PATH) < 0) + if (ft_check_not_found(FT_SFX_DEATH_PATH) < 0 || + ft_check_ext(FT_SFX_DEATH_PATH, ".wav") < 0) return (ft_missing_error(FT_ERR_MISS_SFX_DEATH, clist)); - if (ft_check_not_found(FT_SFX_FS_ONE_PATH) < 0) + if (ft_check_not_found(FT_SFX_FS_ONE_PATH) < 0 || + ft_check_ext(FT_SFX_FS_ONE_PATH, ".wav") < 0) return (ft_missing_error(FT_ERR_MISS_SFX_FS_ONE, clist)); - if (ft_check_not_found(FT_SFX_FS_TWO_PATH) < 0) + if (ft_check_not_found(FT_SFX_FS_TWO_PATH) < 0 || + ft_check_ext(FT_SFX_FS_TWO_PATH, ".wav") < 0) return (ft_missing_error(FT_ERR_MISS_SFX_FS_TWO, clist)); - if (ft_check_not_found(FT_SFX_N_LVL_PATH) < 0) + if (ft_check_not_found(FT_SFX_N_LVL_PATH) < 0 || + ft_check_ext(FT_SFX_N_LVL_PATH, ".wav") < 0) return (ft_missing_error(FT_ERR_MISS_SFX_N_LVL, clist)); - if (ft_check_not_found(FT_SFX_SCR_ONE_PATH) < 0) + if (ft_check_not_found(FT_SFX_SCR_ONE_PATH) < 0 || + ft_check_ext(FT_SFX_SCR_ONE_PATH, ".wav") < 0) return (ft_missing_error(FT_ERR_MISS_SFX_SCR_ONE, clist)); - if (ft_check_not_found(FT_SFX_SCR_TWO_PATH) < 0) + if (ft_check_not_found(FT_SFX_SCR_TWO_PATH) < 0 || + ft_check_ext(FT_SFX_SCR_TWO_PATH, ".wav") < 0) return (ft_missing_error(FT_ERR_MISS_SFX_SCR_TWO, clist)); - if (ft_check_not_found(FT_SFX_TRAP_PATH) < 0) + if (ft_check_not_found(FT_SFX_TRAP_PATH) < 0 || + ft_check_ext(FT_SFX_TRAP_PATH, ".wav") < 0) return (ft_missing_error(FT_ERR_MISS_SFX_TRAP, clist)); return (0); } |