summaryrefslogtreecommitdiff
path: root/src/config.c
blob: 81f3388831e59b9924321ff4acb337808c96844e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Config cfg = {0};

#define expect(X) if (!(X)) { \
	perr("expect failed: "STR(X)); \
	if (ini != NULL) ini_free(ini); \
	config_deinit(); \
}

void
config_init(void)
{
	cfg.tileset_path = "../tset.bmp";
	cfg.world_path = "world.csv";
	cfg.tile_width = cfg.tile_height = 32;
	cfg.cell_width = cfg.cell_height = 20;
}

void
config_deinit(void)
{
}