Could you please comment out this line and see if it still erases the save?
This time it should not list the name of the cartridge or any other info.