/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* start.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: madumerg +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/05 18:42:05 by madumerg #+# #+# */ /* Updated: 2024/10/05 18:44:40 by madumerg ### ########.fr */ /* */ /* ************************************************************************** */ #include "parsing.h" t_pars init_pars(void) { t_pars new; new.f_color = -1; new.c_color = -1; new.color = 0; new.l_player = 0; new.coor.x = 0; new.coor.y = 0; new.no_png = NULL; new.so_png = NULL; new.we_png = NULL; new.ea_png = NULL; new.map = NULL; return (new); } int basics_check(int ac, char **av, t_pars *pars) { if (check_err_arg(ac, av) == 1) return (1); if (verif_info_file(av[1], pars) == 1) return (1); return (0); }