est ce donc finis

This commit is contained in:
YANNIS
2025-02-22 21:34:15 +01:00
parent 7867244f63
commit 43d1fd9202
9 changed files with 115 additions and 6 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
/* By: yantoine <yantoine@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/02/14 01:41:17 by yantoine #+# #+# */
/* Updated: 2025/02/18 20:44:41 by yantoine ### ########.fr */
/* Updated: 2025/02/22 20:37:46 by yantoine ### ########.fr */
/* */
/* ************************************************************************** */
@@ -43,7 +43,7 @@ t_scene load_config(const char *filename)
scene = create_scene();
fd = open(filename, O_RDONLY);
if (!fd)
if (fd <= 0 || !have_extension(filename))
{
printf("Erreur : impossible d'ouvrir %s\n", filename);
return (scene);