Moved some of the padding logic back to buffer.

Because the padding has to come before the buffer is wiped. The game
needs time to read the file.