The Game Name is normally extracted from the header of the rom but it can also be entered manually. Opening the rom with a text or hex editor will reveal the Game Name. If an Alternate Title is set for the rom, it will override this setting.
Game Name = string(40)
Game Name=SUPER MARIO 64