fix gpgx_swap_disc, re-enable disk buttons (seems to work?)

This commit is contained in:
CasualPokePlayer 2022-07-03 23:17:08 -07:00
parent 011f4bfe03
commit e41d1a996e
3 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -359,7 +359,7 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
if (!Core.gpgx_get_control(input, inputsize)) if (!Core.gpgx_get_control(input, inputsize))
throw new Exception($"{nameof(Core.gpgx_get_control)}() failed"); throw new Exception($"{nameof(Core.gpgx_get_control)}() failed");
ControlConverter = new GPGXControlConverter(input, false); // _cds != null); ControlConverter = new GPGXControlConverter(input, _cds != null);
ControllerDefinition = ControlConverter.ControllerDef; ControllerDefinition = ControlConverter.ControllerDef;
} }

View File

@ -157,13 +157,14 @@ void cdd_hotswap(const toc_t *toc)
if (toc) if (toc)
{ {
cdd.loaded = 1; cdd.loaded = 1;
memcpy(&cdd.toc, &toc, sizeof(cdd.toc)); memcpy(&cdd.toc, toc, sizeof(cdd.toc));
} }
else else
{ {
cdd.loaded = 0; cdd.loaded = 0;
memset(&cdd.toc, 0x00, sizeof(cdd.toc)); memset(&cdd.toc, 0x00, sizeof(cdd.toc));
} }
cdd_reset(); cdd_reset();
} }