1 #define _GNU_SOURCE // don't worry, GNU extensions are only used when available
2 #include <dragonnet/init.h>
8 void dragonblocks_init(int argc)
10 #ifdef __GLIBC__ // check whether bloat is enabled
11 pthread_setname_np(pthread_self(), "main");
15 if (stat(ASSET_PATH, &sb) != 0 || !S_ISDIR(sb.st_mode)) {
16 fprintf(stderr, "[error] asset directory not found at %s, "
17 "invoke game from correct path\n", ASSET_PATH);
22 fprintf(stderr, "[error] missing address\n");