aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r--src/ft_parse_map.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index baf3b5f..d2fbe0d 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -1,8 +1,18 @@
#include <libft.h>
#include <cub3d.h>
#include <stdlib.h>
+#include <fcntl.h>
+
+/*
+** I can't close
+*/
void
-ft_parse_map(t_cub *clist)
+ft_parse_map(t_win *wlist, t_cub *clist, const char *map_path)
{
+ int fd;
+
+ (void)clist;
+ fd = open(map_path, O_RDONLY);
+ ft_get_res(fd, wlist);
}