summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authorSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-17 19:27:27 +0000
committerSND\ckain_cp <SND\ckain_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2013-02-17 19:27:27 +0000
commit9cadb0bf0f39e98fa921636890b7eedca183d4b9 (patch)
tree0f748388b1803f1a3f7591b772981a98d58702fa /libpcsxcore
parenta1deb565b2c4d65178acfeb0a4cf433b3eeceb97 (diff)
downloadpcsxr-9cadb0bf0f39e98fa921636890b7eedca183d4b9.tar.gz
Invalidate ICache when loading files from CDROM. Both CPU implementations now run main menu of Casper & X-Files.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@82966 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore')
-rwxr-xr-xlibpcsxcore/misc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libpcsxcore/misc.c b/libpcsxcore/misc.c
index f311d1c5..64c80ab2 100755
--- a/libpcsxcore/misc.c
+++ b/libpcsxcore/misc.c
@@ -250,6 +250,10 @@ int LoadCdromFile(const char *filename, EXE_HEADER *head) {
size = head->t_size;
addr = head->t_addr;
+ // Cache clear/invalidate dynarec/int. Fixes startup of Casper/X-Files and possibly others.
+ psxCpu->Clear(addr, size / 4);
+ psxRegs.ICache_valid = FALSE;
+
while (size) {
incTime();
READTRACK();