Found it!

Turns out the qfiles.h header was the problem. I had only copied over
some of the space for the PCX file format, and it was copying over
incorrectly. How frustrating, but it works!