Added filetype checking

This commit is contained in:
Theo Champion 2025-06-04 19:16:59 +02:00
parent 8f99d23431
commit 935370ac63
5 changed files with 58 additions and 27 deletions

15
includes/maputils.h Normal file
View file

@ -0,0 +1,15 @@
#ifndef MAPUTILS_H
# define MAPUTILS_H
# include <stdbool.h>
typedef struct s_mapdata
{
char *filename;
bool isvalid;
char error[1024];
} t_mapdata;
bool check_cubfile(char *filename, t_mapdata *map);
#endif