ramapcsx2 / gbs-control

GNU General Public License v3.0
773 stars 110 forks source link

Fix preset slot-related bugs caused by mixing integers and characters #424

Closed nyanpasu64 closed 1 year ago

nyanpasu64 commented 1 year ago

This PR is based around treating uopt->presetSlot consistently as a character rather than integer index. This approach requires the least changes to code, since it requires no changes to the web UI sending ASCII, and most (but not all) of the C++ backend already treats uopt->presetSlot as ASCII. Alternative approaches are also possible (see #422 @ Solutions), but are more difficult and may introduce errors due to making large untested changes, so I don't want to pursue them.

Fixes #422.