X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=libpcsxcore%2Fmisc.c;fp=libpcsxcore%2Fmisc.c;h=cd16c41a9f3b908aade493a38c35ac09dfd65452;hp=1b38e287151dce8e2d238330745731cf64b619c6;hb=7bbabe80066083236adfd653f289de17443a7dd8;hpb=ecd502e11f1d17998924f2de5909380b75c67d49 diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c index 1b38e287..cd16c41a 100644 --- a/libpcsxcore/misc.c +++ b/libpcsxcore/misc.c @@ -244,6 +244,7 @@ int LoadCdrom() { tmpHead.t_addr = SWAP32(tmpHead.t_addr); psxCpu->Clear(tmpHead.t_addr, tmpHead.t_size / 4); + psxCpu->Reset(); // Read the rest of the main executable while (tmpHead.t_size & ~2047) { @@ -291,6 +292,7 @@ int LoadCdromFile(const char *filename, EXE_HEADER *head) { addr = head->t_addr; psxCpu->Clear(addr, size / 4); + psxCpu->Reset(); while (size & ~2047) { incTime();