mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 07:17:45 -04:00
libretro, improve 32x save/load for run-ahead
This commit is contained in:
parent
b72662e224
commit
92f7a430ca
2 changed files with 8 additions and 0 deletions
|
@ -347,6 +347,7 @@ static int state_save(void *file)
|
|||
CHECKED_WRITE(chwc->chunk, chwc->size, chwc->ptr);
|
||||
}
|
||||
|
||||
CHECKED_WRITE(0, 0, NULL);
|
||||
retval = 0;
|
||||
|
||||
out:
|
||||
|
@ -540,6 +541,8 @@ static int state_load(void *file)
|
|||
break;
|
||||
#endif
|
||||
default:
|
||||
if (len|chunk == 0)
|
||||
goto readend;
|
||||
if (carthw_chunks != NULL)
|
||||
{
|
||||
carthw_state_chunk *chwc;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue