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-saturn-libretro
Commits
3a5f2f8a
Commit
3a5f2f8a
authored
Aug 12, 2016
by
Libretro-Admin
Browse files
Cleanups
parent
6e63c108
Changes
1
Hide whitespace changes
Inline
Side-by-side
libretro.cpp
View file @
3a5f2f8a
...
...
@@ -912,11 +912,13 @@ static void CalcGameID(uint8* id_out16, uint8* fd_id_out16, char* sgid)
md5_context
mctx
;
uint8_t
*
buf
=
new
uint8_t
[
2048
];
log_cb
(
RETRO_LOG_INFO
,
"Start calculating game ID, discs: %d...
\n
"
,
cdifs
?
cdifs
->
size
()
:
0
);
mctx
.
starts
();
for
(
size_t
x
=
0
;
x
<
cdifs
->
size
();
x
++
)
{
auto
*
c
=
(
*
cdifs
)[
x
];
CDIF
*
c
=
(
*
cdifs
)[
x
];
TOC
toc
;
c
->
ReadTOC
(
&
toc
);
...
...
@@ -964,7 +966,8 @@ static void CalcGameID(uint8* id_out16, uint8* fd_id_out16, char* sgid)
}
}
free
(
buf
);
if
(
buf
)
free
(
buf
);
mctx
.
finish
(
id_out16
);
}
...
...
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