diff --git a/test/main.c b/test/main.c index d249ebe..0ee9247 100644 --- a/test/main.c +++ b/test/main.c @@ -131,7 +131,7 @@ void unpacktextures(const char *filedata, unsigned int i; for (i = 0; i < texturecount; i++) { texsize = descripts[i/(tp -> batchNumber)] -> textureSize; - sprintf(fmt, "test_%d.dds", i); + sprintf(fmt, "%s_%d.dds", filename, i); write(fmt, i, filedata + tloc[i], texsize); } free(fmt);