# HG changeset patch # User Mychaela Falconia # Date 1454175527 0 # Node ID b3b7013d9228cb2e3d4b835a74eb65e4ed8470b7 # Parent c977d637f03890736fdff9672e5ca8358d15bbb8 pads2gpcb.c/decals.c: allow underscores in written decal file names diff -r c977d637f038 -r b3b7013d9228 pads2gpcb/decals.c --- a/pads2gpcb/decals.c Sat Jan 30 17:31:20 2016 +0000 +++ b/pads2gpcb/decals.c Sat Jan 30 17:38:47 2016 +0000 @@ -270,7 +270,7 @@ dp = filename + 7; for (cp = current_decal->name; *cp; ) { c = *cp++; - if (isalnum(c) || c == '-' || c == '.') + if (isalnum(c) || c == '-' || c == '.' || c == '_') *dp++ = c; else { sprintf(dp, "%%%02X", c); @@ -285,6 +285,7 @@ } write_gpcb_element(outf, current_decal->body, 0, "", "", "", 0); fclose(outf); + printf("Written to %s\n", filename); free(filename); }