Here's a patch to add Code Breaker and Gameshark v3 cheatcode support to VisualBoyAdvance. Reproducible: Always Steps to Reproduce: Adds option --cheats, -C to point at a cheat file of the format ( |\t)*<code>*(#<description>*)* Code type (CBA or GSA) is determined by length and nothing more. Putting in an invalid formatted code will print out a failure and all further codes will not be checked. Executing will function regardless. Codes are *not* loaded upon state change (that should probably be fixed). A line of the format ( |\t)*(#<description>*)* will be ignored. Such is useful to have blank lines or descriptor lines. I've not actually tried using any GSA codes, so them actually working needs to be tested.
Created attachment 38809 [details, diff] Adds cheat code support
where did the patch come from ? did you write it ? we've e-mailed upstream about it ... we'll wait a bit to see if they get back to us ... we dont really like adding cool new features without upstreams blessing :)
Yea, I wrote it. And like I was saying, it's far from polished. But, it's better than the nothing provided so far.
I'm not comfortable putting this into portage. No reply from upstream, but I did email them about it. I'm going to mark this as WONTFIX but that doesn't mean people can't add this to their overlay and use it locally. Hopefully, upstream will add cheat code support for linux in a future release.
Created attachment 67036 [details, diff] Updated patch. Should work with both cheat formats now.