est ce donc finis
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user