X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fcd%2FArea.c;h=8100d366331bb3fd5b8433a0328608b4c059d16b;hb=a4f0cc8647c019f149541df380a2d30e14aeb75c;hp=bd8d157c7be2dbecc2b6ba2c686b3eecb5f0c90f;hpb=4ff2d52753e46bce5622a5935f3d3750b5848f8f;p=picodrive.git diff --git a/Pico/cd/Area.c b/Pico/cd/Area.c index bd8d157..8100d36 100644 --- a/Pico/cd/Area.c +++ b/Pico/cd/Area.c @@ -1,9 +1,5 @@ -// This is part of Pico Library - -// (c) Copyright 2007 notaz, All rights reserved. -// Free for non-commercial use. - -// For commercial use, separate licencing terms must be obtained. +// Savestate handling for emulated Sega/Mega CD machine. +// (c) Copyright 2007, Grazvydas "notaz" Ignotas #include "../PicoInt.h" @@ -245,6 +241,8 @@ int PicoCdLoadState(void *file) wram_2M_to_1M(Pico_mcd->word_ram2M); #ifdef _ASM_CD_MEMORY_C PicoMemResetCD(Pico_mcd->s68k_regs[3]); + if (Pico_mcd->s68k_regs[3]&4) + PicoMemResetCDdecode(Pico_mcd->s68k_regs[3]); #endif if (Pico_mcd->m.audio_track > 0 && Pico_mcd->m.audio_track < Pico_mcd->TOC.Last_Track) mp3_start_play(Pico_mcd->TOC.Tracks[Pico_mcd->m.audio_track].F, Pico_mcd->m.audio_offset);