Carmack admitted in testimony that he had copied thousands of e-mails to a personal hard drive on his last day at ZeniMax, but he maintained that he rewrote any code used on the Rift and Gear VR headsets from scratch.