mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 09:58:09 +01:00
Added filetype checking
This commit is contained in:
parent
8f99d23431
commit
935370ac63
5 changed files with 58 additions and 27 deletions
15
includes/maputils.h
Normal file
15
includes/maputils.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue