static unsigned char *cd_realloc(void *old, int filesize)\r
{\r
unsigned char *rom;\r
- dprintf("sizeof(mcd_state): %i", sizeof(mcd_state));\r
rom=realloc(old, sizeof(mcd_state));\r
if (rom) memset(rom+0x20000, 0, sizeof(mcd_state)-0x20000);\r
return rom;\r
alloc_size&=~0x7ffff; // use alloc size of multiples of 512K, so that memhandlers could be set up more efficiently\r
if((filesize&0x3fff)==0x200) alloc_size+=0x200;\r
else if(alloc_size-filesize < 4) alloc_size+=4; // padding for out-of-bound exec protection\r
- //dprintf("alloc_size: %x\n", alloc_size);\r
\r
// Allocate space for the rom plus padding\r
rom=(unsigned char *)malloc(alloc_size);\r