[Core/CD] CD struct area should only be touched when emulated since it's shared with large ROM (> 8MB) buffer area

This commit is contained in:
ekeeke 2016-06-22 11:36:34 +02:00 committed by GitHub
parent 2e8fde0963
commit 101afae137

View File

@ -1107,10 +1107,12 @@ void get_region(char *romheader)
else if (config.master_clock == 2) system_clock = MCLOCK_PAL;
/* reinitialize CD unit master clock count per scanline */
scd.cycles_per_line = (uint32) (MCYCLES_PER_LINE * ((float)SCD_CLOCK / (float)system_clock));
if (system_hw == SYSTEM_MCD)
{
scd.cycles_per_line = (uint32) (MCYCLES_PER_LINE * ((float)SCD_CLOCK / (float)system_clock));
}
}
/****************************************************************************
* get_company (Softdev - 2006)
*