First chapter he remembers that he's the shit background character that gets killed by his little brother, it's either a game or a story from his past life.
Edit: Nevermind, it's like the fourth chapter, when he first meets Regulus, and there's no mention of game elements, he just has a vision...