In this video, ETA Prime shows you how to use cheats or cheat codes with PPSSPP, he's using a Windows PC in the video but it is the same method on other platforms like RetroPie, OSX, Android, Linux or any other platform that uses the stand alone version of PPSSPP but getting to the directory and adding the cheats.DB file will be a bit different.

Cheats.db file he uses: