Skip to content

Commit

Permalink
Add prints to gpgx_swap_disc
Browse files Browse the repository at this point in the history
  • Loading branch information
CasualPokePlayer committed Oct 6, 2024
1 parent 5c3ae64 commit 9e0cfb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Binary file modified Assets/dll/gpgx.wbx.zst
Binary file not shown.
2 changes: 2 additions & 0 deletions waterbox/gpgx/cinterface/cinterface.c
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,15 @@ GPGX_EX void gpgx_swap_disc(const toc_t* toc, int8 index)
{
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];
cd_index = index;
memcpy(&pending_toc, toc, sizeof(toc_t));
cdd_load("HOTSWAP_CD", header);
}
else
{
fprintf(stderr, "Removing CD with index %d (NULL TOC), setting index to -1\n", index);
cd_index = -1;
cdd_unload();
}
Expand Down

0 comments on commit 9e0cfb1

Please sign in to comment.