summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authoriCatButler <i.am.catbutler@gmail.com>2016-03-31 21:27:13 +0100
committeriCatButler <i.am.catbutler@gmail.com>2016-03-31 21:32:15 +0100
commit3c0cd06addad4e0a957422ee9ecbeb12f24cffac (patch)
tree544626ba1671e3acecb214deaf9841213c5c8cf3 /libpcsxcore
parent0c06f5ebc604f909096e97b06ba19c2df412e813 (diff)
downloadpcsxr-3c0cd06addad4e0a957422ee9ecbeb12f24cffac.tar.gz
Revert "Son of Ugly's Wipeout patch"
Breaks Chrono Cross intro sequence camera. This reverts commit f7f38c4b89937391a8ba7c785d0d6b108ac02eb7.
Diffstat (limited to 'libpcsxcore')
-rwxr-xr-xlibpcsxcore/psxcommon.h1
-rwxr-xr-xlibpcsxcore/psxmem.c42
2 files changed, 18 insertions, 25 deletions
diff --git a/libpcsxcore/psxcommon.h b/libpcsxcore/psxcommon.h
index 61a675ca..3f13dfa8 100755
--- a/libpcsxcore/psxcommon.h
+++ b/libpcsxcore/psxcommon.h
@@ -162,7 +162,6 @@ typedef struct {
u32 AltSpeed1; // Percent relative to natural speed.
u32 AltSpeed2;
u8 HackFix;
- u8 MemHack;
#ifdef _WIN32
char Lang[256];
#endif
diff --git a/libpcsxcore/psxmem.c b/libpcsxcore/psxmem.c
index fc748698..285eaf67 100755
--- a/libpcsxcore/psxmem.c
+++ b/libpcsxcore/psxmem.c
@@ -143,10 +143,9 @@ u8 psxMemRead8(u32 mem) {
char *p;
u32 t;
- if (Config.MemHack)
- {
- psxRegs.cycle += 0;
- }
+
+ psxRegs.cycle += 0;
+
t = mem >> 16;
if (t == 0x1f80 || t == 0x9f80 || t == 0xbf80) {
@@ -173,11 +172,10 @@ u16 psxMemRead16(u32 mem) {
char *p;
u32 t;
- if (Config.MemHack)
- {
- psxRegs.cycle += 1;
- }
+ psxRegs.cycle += 1;
+
+
t = mem >> 16;
if (t == 0x1f80 || t == 0x9f80 || t == 0xbf80) {
if ((mem & 0xffff) < 0x400)
@@ -203,11 +201,10 @@ u32 psxMemRead32(u32 mem) {
char *p;
u32 t;
- if (Config.MemHack)
- {
- psxRegs.cycle += 1;
- }
+ psxRegs.cycle += 1;
+
+
t = mem >> 16;
if (t == 0x1f80 || t == 0x9f80 || t == 0xbf80) {
if ((mem & 0xffff) < 0x400)
@@ -233,11 +230,10 @@ void psxMemWrite8(u32 mem, u8 value) {
char *p;
u32 t;
- if (Config.MemHack)
- {
- psxRegs.cycle += 1;
- }
+ psxRegs.cycle += 1;
+
+
t = mem >> 16;
if (t == 0x1f80 || t == 0x9f80 || t == 0xbf80) {
if ((mem & 0xffff) < 0x400)
@@ -265,11 +261,10 @@ void psxMemWrite16(u32 mem, u16 value) {
char *p;
u32 t;
- if (Config.MemHack)
- {
- psxRegs.cycle += 1;
- }
+ psxRegs.cycle += 1;
+
+
t = mem >> 16;
if (t == 0x1f80 || t == 0x9f80 || t == 0xbf80) {
if ((mem & 0xffff) < 0x400)
@@ -297,10 +292,9 @@ void psxMemWrite32(u32 mem, u32 value) {
char *p;
u32 t;
- if (Config.MemHack)
- {
- psxRegs.cycle += 1;
- }
+
+ psxRegs.cycle += 1;
+
// if ((mem&0x1fffff) == 0x71E18 || value == 0x48088800) SysPrintf("t2fix!!\n");
t = mem >> 16;