Commit Graph

15 Commits

Author SHA1 Message Date
David Guillen Fandos
2352adcc50 Improve savestate loading to avoid corrupting the current state
It should not happen since the magic value and version would normally
discard incompatible savestates, however it's preferrable to check
before loading the state (it's just some minor sanity check).
2023-09-07 20:26:44 +02:00
David Guillen Fandos
7068cbc95b New savestate implementation
This uses BSON as savestate format, to allow external tools to parse it
(so that we can add proper test of the states). The BSON is not 100%
correct according to spec (no ordered keys) but can be parsed by most
libraries.

This fixes also a bug in the savestate palette color recalculation that
was wrongly overwritting the original palette (which could cause some
problems on some games).

Also fixes some potential issues by serializing some more stuff and
cleans up unused stuff.

Testing shows that states look good and there's only minor differences
in audio ticks, related to buffer sizes (since buffer flushes are
de-synced from video frames due to different frequency).
2021-08-24 17:15:27 +02:00
jdgleaver
d0b35e939c Add turbo A/B buttons 2021-05-17 13:02:41 +01:00
jdgleaver
134aba2b37 Add dedicated RetroPad fast-forward button 2021-05-13 16:03:55 +01:00
Andrés
38007a82f2 Remove this hack
It makes it impossible to use remapping
2016-08-26 09:03:59 -05:00
LodanZark
d5075185ef Update input.h
Extra L and R keys useful for certain games (specially fighting ones)
2015-12-23 13:00:28 +00:00
twinaphex
5e55f00fd1 Cleanups 2015-07-30 03:07:03 +02:00
aliaspider
6d7fd87e07 add a HAVE_MMAP check, cleanups. 2014-12-10 12:29:19 +01:00
aliaspider
ad485d434a implement retro_serialize/unserialize 2014-12-10 11:06:17 +01:00
twinaphex
5c949f38e4 Assume PC_BUILD 2014-12-09 17:18:45 +01:00
twinaphex
a1a8e339ff Remove non-libretro code in input.c 2014-12-09 16:47:47 +01:00
aliaspider
50df6df600 fix undefined referances. 2014-12-09 01:59:02 +01:00
notaz
43c24b301d refactor GP2X stuff for pandora reuse 2011-09-04 20:19:13 +03:00
notaz
42c8119010 u5 release 2009-06-13 22:19:53 +03:00
notaz
2823a4c819 original source from gpsp09-2xb_src.tar.bz2 2009-05-21 18:48:31 +03:00