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
libretro-handy
Commits
945e347a
Commit
945e347a
authored
Dec 18, 2019
by
newsie-oss
Browse files
[libretro] reduce savestate size
parent
fbd7e0da
Changes
2
Hide whitespace changes
Inline
Side-by-side
lynx/mikie.cpp
View file @
945e347a
...
...
@@ -365,7 +365,6 @@ bool CMikie::ContextSave(LSS_FILE *fp)
if
(
!
lss_write
(
&
mTimerInterruptMask
,
sizeof
(
ULONG
),
1
,
fp
))
return
0
;
if
(
!
lss_write
(
mPalette
,
sizeof
(
TPALETTE
),
16
,
fp
))
return
0
;
if
(
!
lss_write
(
mColourMap
,
sizeof
(
ULONG
),
4096
,
fp
))
return
0
;
if
(
!
lss_write
(
&
mIODAT
,
sizeof
(
ULONG
),
1
,
fp
))
return
0
;
if
(
!
lss_write
(
&
mIODAT_REST_SIGNAL
,
sizeof
(
ULONG
),
1
,
fp
))
return
0
;
...
...
@@ -572,7 +571,6 @@ bool CMikie::ContextLoad(LSS_FILE *fp)
if
(
!
lss_read
(
&
mTimerInterruptMask
,
sizeof
(
ULONG
),
1
,
fp
))
return
0
;
if
(
!
lss_read
(
mPalette
,
sizeof
(
TPALETTE
),
16
,
fp
))
return
0
;
if
(
!
lss_read
(
mColourMap
,
sizeof
(
ULONG
),
4096
,
fp
))
return
0
;
if
(
!
lss_read
(
&
mIODAT
,
sizeof
(
ULONG
),
1
,
fp
))
return
0
;
if
(
!
lss_read
(
&
mIODAT_REST_SIGNAL
,
sizeof
(
ULONG
),
1
,
fp
))
return
0
;
...
...
lynx/system.cpp
View file @
945e347a
...
...
@@ -515,8 +515,6 @@ bool CSystem::ContextSave(LSS_FILE *fp)
ULONG
tmp
=
gTimerCount
;
if
(
!
lss_write
(
&
tmp
,
sizeof
(
ULONG
),
1
,
fp
))
status
=
0
;
if
(
!
lss_write
(
gAudioBuffer
,
sizeof
(
UBYTE
),
HANDY_AUDIO_BUFFER_SIZE
,
fp
))
status
=
0
;
if
(
!
lss_write
(
&
gAudioBufferPointer
,
sizeof
(
ULONG
),
1
,
fp
))
status
=
0
;
if
(
!
lss_write
(
&
gAudioLastUpdateCycle
,
sizeof
(
ULONG
),
1
,
fp
))
status
=
0
;
// Save other device contexts
...
...
@@ -583,8 +581,6 @@ bool CSystem::ContextLoad(LSS_FILE *fp)
if
(
!
lss_read
(
&
tmp
,
sizeof
(
ULONG
),
1
,
fp
))
status
=
0
;
gTimerCount
=
tmp
;
if
(
!
lss_read
(
gAudioBuffer
,
sizeof
(
UBYTE
),
HANDY_AUDIO_BUFFER_SIZE
,
fp
))
status
=
0
;
if
(
!
lss_read
(
&
gAudioBufferPointer
,
sizeof
(
ULONG
),
1
,
fp
))
status
=
0
;
if
(
!
lss_read
(
&
gAudioLastUpdateCycle
,
sizeof
(
ULONG
),
1
,
fp
))
status
=
0
;
if
(
!
mMemMap
->
ContextLoad
(
fp
))
status
=
0
;
...
...
@@ -600,6 +596,8 @@ bool CSystem::ContextLoad(LSS_FILE *fp)
if
(
!
mSusie
->
ContextLoad
(
fp
))
status
=
0
;
if
(
!
mCpu
->
ContextLoad
(
fp
))
status
=
0
;
if
(
!
mEEPROM
->
ContextLoad
(
fp
))
status
=
0
;
gAudioBufferPointer
=
0
;
}
else
{
fprintf
(
stderr
,
"[handy]Not a recognised LSS file
\n
"
);
}
...
...
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