From 2b13c1516e85060dc9cf4fd68fafa7459eee73fc Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 20 Feb 2013 08:06:55 -0500 Subject: Define installation directory preprocessor macros. --- (limited to 'src') diff --git a/src/main.c b/src/main.c index 8c5463e..3f20335 100644 --- a/src/main.c +++ b/src/main.c @@ -31,7 +31,13 @@ main(void) init(); vp = init_viewport(240, 160, 8); - map = map_get("data/maps/forest1-8bit.tmx"); + map = map_get(MAPSDIR "/forest1-8bit.tmx"); + if (map == NULL) { + map = map_get("data/maps/forest1-8bit.tmx"); + } + if (map == NULL) { + err(1, "Where's the map, George?"); + } a = area_new(map); for (i = 0; i < 256; ++i) { -- cgit v0.9.1