[Core/General] added optional dynamic allocation of cartridge/CD hardware buffer (continued)

This commit is contained in:
EkeEke 2014-11-25 23:27:43 +01:00
parent 3bc10f9b30
commit 6087259899

View File

@ -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();