Add prints to gpgx_swap_disc
This commit is contained in:
parent
5c3ae64014
commit
9e0cfb117b
Binary file not shown.
|
@ -204,6 +204,7 @@ GPGX_EX void gpgx_swap_disc(const toc_t* toc, int8 index)
|
||||||
{
|
{
|
||||||
if (toc)
|
if (toc)
|
||||||
{
|
{
|
||||||
|
fprintf(stderr, "Hotswapping CD index %d, TOC CRC32: %08lX\n", index, crc32(0, (const unsigned char*)toc, sizeof(toc_t)));
|
||||||
char header[0x210];
|
char header[0x210];
|
||||||
cd_index = index;
|
cd_index = index;
|
||||||
memcpy(&pending_toc, toc, sizeof(toc_t));
|
memcpy(&pending_toc, toc, sizeof(toc_t));
|
||||||
|
@ -211,6 +212,7 @@ GPGX_EX void gpgx_swap_disc(const toc_t* toc, int8 index)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
fprintf(stderr, "Removing CD with index %d (NULL TOC), setting index to -1\n", index);
|
||||||
cd_index = -1;
|
cd_index = -1;
|
||||||
cdd_unload();
|
cdd_unload();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue