Add a check to avoid overwriting cheat file.
Merge pull request #4459 from shenweip/patch-4

Add a check to avoid overwriting cheat file with old content.