Commit Graph

4 Commits

Author SHA1 Message Date
libretroadmin
0223c0b3c6 Header include fixes/cleanups 2022-12-14 18:40:09 +01:00
twinaphex
e2f040e024 Cleanups 2020-10-03 12:40:06 +02:00
negativeExponent
db4fb2469c Add native cheat support
- Supports cheats in the form of F82xxx-F83xxx (physical
  address. RAM)
- Cheats in 1F0xxx-1F1xxx (raw address, RAM)
- Cheats in 00D000-100000 (raw address, System Card Ram)
- Cheats in 100000-110000 (raw address, CD RAM)
-
- Cheats in 802000-802000 (physical address, CD RAM)
- Cheats in F82000-F83000 (physical address, main RAM)
-
- as well as multi-line cheats.

Notes:
- Cheats has to be a 9-digit format, address in 6-digit followed by ':'
  separator and then a 1-byte value, aka xxxxxx:yy
- Multiline cheats has to be represented as xxxxxx:yy+xxxxxx:yy with '+'
  as a code separator
- It is best to use raw format (or mednafen code formats) within the
  range expected above.
- ROM based cheats not implemented (most of the labeled raw address) as
  they require writing to read-only memory.

Reference: libretro/beetle-pce-fast-libretro#93
2020-09-28 16:16:08 +08:00
twinaphex
358492ba9d Convert settings.cpp to settings.c 2020-09-16 20:47:45 +02:00