Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
beetle-pce-libretro
Commits
c33ff011
Unverified
Commit
c33ff011
authored
May 09, 2019
by
funbars
Committed by
GitHub
May 09, 2019
Browse files
fix runahead
parent
c967bdde
Changes
1
Hide whitespace changes
Inline
Side-by-side
libretro.cpp
View file @
c33ff011
...
...
@@ -1292,24 +1292,33 @@ void retro_set_video_refresh(retro_video_refresh_t cb)
video_cb
=
cb
;
}
static
size_t
serialize_size
;
size_t
retro_serialize_size
(
void
)
{
StateMem
st
;
StateMem
st
;
size_t
serialize_size
;
st
.
data
=
NULL
;
st
.
loc
=
0
;
st
.
len
=
0
;
st
.
malloced
=
0
;
st
.
initial_malloc
=
0
;
st
.
data
=
NULL
;
st
.
loc
=
0
;
st
.
len
=
0
;
st
.
malloced
=
0
;
st
.
initial_malloc
=
0
;
if
(
!
MDFNSS_SaveSM
(
&
st
,
0
,
0
,
NULL
,
NULL
,
NULL
))
return
0
;
if
(
!
MDFNSS_SaveSM
(
&
st
,
0
,
0
,
NULL
,
NULL
,
NULL
))
return
0
;
free
(
st
.
data
);
free
(
st
.
data
);
serialize_size
=
st
.
len
;
int
runahead
=
-
1
;
if
(
environ_cb
(
RETRO_ENVIRONMENT_GET_AUDIO_VIDEO_ENABLE
,
&
runahead
))
{
// future expanding size
if
(
runahead
&
4
)
serialize_size
+=
0x280000
;
}
return
serialize_size
=
st
.
len
;
return
serialize_size
;
}
bool
retro_serialize
(
void
*
data
,
size_t
size
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment