summaryrefslogtreecommitdiff
path: root/libpcsxcore
diff options
context:
space:
mode:
authoriCatButler <i.am.catbutler@gmail.com>2016-08-03 19:30:54 +0100
committeriCatButler <i.am.catbutler@gmail.com>2016-08-03 19:30:54 +0100
commit595034707b7ee346e575c6776327794ab5535ce8 (patch)
tree8384c99833c5e437acfde27c34e44bf3c5595656 /libpcsxcore
parentaafb74a6af20e6da46b77323438b41ae7b88fbf4 (diff)
downloadpcsxr-595034707b7ee346e575c6776327794ab5535ce8.tar.gz
Fix possible function pointer initialisation problem
Diffstat (limited to 'libpcsxcore')
-rwxr-xr-xlibpcsxcore/ix86/iR3000A.c4
-rwxr-xr-xlibpcsxcore/psxinterpreter.c2
-rwxr-xr-xlibpcsxcore/r3000a.h1
3 files changed, 3 insertions, 4 deletions
diff --git a/libpcsxcore/ix86/iR3000A.c b/libpcsxcore/ix86/iR3000A.c
index e2fd7aee..66fac432 100755
--- a/libpcsxcore/ix86/iR3000A.c
+++ b/libpcsxcore/ix86/iR3000A.c
@@ -98,7 +98,7 @@ static void(**pRecCP2BSC)() = recCP2BSC;
static void recReset();
-void recSetPGXPMode(u32 pgxpMode)
+static void recSetPGXPMode(u32 pgxpMode)
{
switch(pgxpMode)
{
@@ -129,7 +129,7 @@ void recSetPGXPMode(u32 pgxpMode)
}
// set interpreter mode too
- intSetPGXPMode(pgxpMode);
+ psxInt.SetPGXPMode(pgxpMode);
// reset to ensure new func tables are used
recReset();
}
diff --git a/libpcsxcore/psxinterpreter.c b/libpcsxcore/psxinterpreter.c
index 26d9f825..6aa5ac15 100755
--- a/libpcsxcore/psxinterpreter.c
+++ b/libpcsxcore/psxinterpreter.c
@@ -69,7 +69,7 @@ static void(**pPsxCP2BSC)() = psxCP2BSC;
static void intReset();
-void intSetPGXPMode(u32 pgxpMode)
+static void intSetPGXPMode(u32 pgxpMode)
{
switch (pgxpMode)
{
diff --git a/libpcsxcore/r3000a.h b/libpcsxcore/r3000a.h
index 3159891e..b0616256 100755
--- a/libpcsxcore/r3000a.h
+++ b/libpcsxcore/r3000a.h
@@ -347,7 +347,6 @@ void psxDelayTest(int reg, u32 bpc);
void psxTestSWInts();
void psxJumpTest();
-void intSetPGXPMode(u32 pgxpMode);
void psxSetPGXPMode(u32 pgxpMode);
#ifdef __cplusplus