mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2024-11-10 21:05:12 +01:00
[Core/General] added optional dynamic allocation of cartridge/CD hardware buffer (continued)
This commit is contained in:
parent
3bc10f9b30
commit
6087259899
@ -531,6 +531,14 @@ int load_rom(char *filename)
|
||||
{
|
||||
int i, size;
|
||||
|
||||
#ifdef USE_DYNAMIC_ALLOC
|
||||
/* allocate memory for Cartridge /CD hardware buffer if required */
|
||||
if (ext == NULL)
|
||||
{
|
||||
ext = (external_t *)malloc(sizeof(external_t));
|
||||
}
|
||||
#endif
|
||||
|
||||
/* clear any existing patches */
|
||||
ggenie_shutdown();
|
||||
areplay_shutdown();
|
||||
|
Loading…
Reference in New Issue
Block a user