He didn’t “inject” the “code” for anything, that’s not how this works in the slightest. You can’t just take the source code and throw it in. He just gave the game new instructions using a well established and known exploit that manipulates the existing source code.