COMMON_CXXFLAGS:=-c -Wall -Wwrite-strings -Wno-unused-but-set-variable -Wredundant-decls -Wunreachable-code -Wformat -Werror=format-security -fstack-protector --param=ssp-buffer-size=4 -DMAJVERS=$(MAJVERS) -DMINVERS=$(MINVERS) -std=gnu++11 -D_FORTIFY_SOURCE=2
PRODUCTION_CXXFLAGS:=$(COMMON_CXXFLAGS)
DEVELOPMENT_CXXFLAGS:=$(COMMON_CXXFLAGS) -g -Werror
-LIBS=-lm -lpanelw -lncursesw
+LIBS=-lpanelw -lncursesw -lxdg-basedir -lm
ARCHIVEDIR:=victrix-abyssi-$(MAJVERS).$(MINVERS)
ARCHIVENAME:=victrix-abyssi_$(MAJVERS).$(MINVERS)
Section: games
Priority: optional
Standards-Version: 3.9.2
-Build-Depends: debhelper (>= 9), libncursesw5-dev
+Build-Depends: debhelper (>= 9), libncursesw5-dev, libxdg-basedir-dev
Package: victrix-abyssi
Architecture: any
#include <time.h>
#include <limits.h>
#include <deque>
+#include <basedir.h>
/* Coord/Offset constants */
Coord const Nowhere = { INT_MIN, INT_MIN };
}
}
+xdgHandle victrix_xdg_handle;
+
int main(void)
{
struct stat s;
int i;
+ xdgHandle * foo = xdgInitHandle(&victrix_xdg_handle);
+ if (!foo)
+ {
+ //// welp. Should probably throw a wobbly.
+ }
+ // TODO actually have a config file!
display_init();
rng_init();
/* Do we have a saved game? */