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
Stella
Commits
6a17467e
Commit
6a17467e
authored
Dec 19, 2018
by
Stephen Anthony
Browse files
Slight space savings for load/save state.
parent
ae3df819
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/common/StateManager.cxx
View file @
6a17467e
...
...
@@ -27,7 +27,7 @@
#include "StateManager.hxx"
#define STATE_HEADER "05090
101
state"
#define STATE_HEADER "05090
902
state"
// #define MOVIE_HEADER "03030000movie"
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
...
...
src/emucore/tia/DelayQueueMember.hxx
View file @
6a17467e
...
...
@@ -113,7 +113,7 @@ bool DelayQueueMember<capacity>::save(Serializer& out) const
{
try
{
out
.
put
Int
(
mySize
);
//FIXME - check datatype
out
.
put
Byte
(
mySize
);
for
(
uInt8
i
=
0
;
i
<
mySize
;
++
i
)
{
const
Entry
&
e
=
myEntries
[
i
];
...
...
@@ -136,7 +136,7 @@ bool DelayQueueMember<capacity>::load(Serializer& in)
{
try
{
mySize
=
in
.
get
Int
();
//FIXME - check datatype
mySize
=
in
.
get
Byte
();
if
(
mySize
>
capacity
)
throw
new
runtime_error
(
"invalid delay queue size"
);
for
(
uInt32
i
=
0
;
i
<
mySize
;
++
i
)
{
...
...
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