allow # comment in embedded resource list files

This commit is contained in:
Vadim Lopatin 2016-08-25 14:40:01 +03:00
parent 21964d7695
commit b7711852b1
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ EmbeddedResource[] embedResource(string resourceName)() {
} else { } else {
immutable string name = baseName(resourceName); immutable string name = baseName(resourceName);
} }
static if (name.length > 0) { static if (name.length > 0 && !name.startsWith("#")) {
immutable ubyte[] data = cast(immutable ubyte[])import(name); immutable ubyte[] data = cast(immutable ubyte[])import(name);
static if (data.length > 0) static if (data.length > 0)
return [EmbeddedResource(name, data)]; return [EmbeddedResource(name, data)];