mirror of
https://github.com/libretro/FBNeo.git
synced 2025-02-03 16:03:25 +00:00
Precompile instructions to dipswitch (#1006)
This commit is contained in:
parent
472f9406c8
commit
5c5ff0bc17
3
makefile
3
makefile
@ -53,9 +53,6 @@ endif
|
||||
# Include rom set verifying features (comment this for release builds)
|
||||
#ROM_VERIFY = 1
|
||||
|
||||
# CPS1 games (No sound) with QSound [Hack]
|
||||
#HACK_SOUND = 1
|
||||
|
||||
# Force recompilation of files that need it (i.e. use __TIME__, __DATE__, SPECIALBUILD).
|
||||
FORCE_UPDATE = 1
|
||||
|
||||
|
@ -222,10 +222,6 @@ ifdef ROM_VERIFY
|
||||
DEF := $(DEF) -DROM_VERIFY
|
||||
endif
|
||||
|
||||
ifdef HACK_SOUND
|
||||
DEF := $(DEF) -DCPS1_HACK_QSOUND
|
||||
endif
|
||||
|
||||
ifdef INCLUDE_7Z_SUPPORT
|
||||
DEF := $(DEF) -DINCLUDE_7Z_SUPPORT
|
||||
endif
|
||||
|
@ -335,10 +335,6 @@ ifdef ROM_VERIFY
|
||||
DEF := $(DEF) -DROM_VERIFY
|
||||
endif
|
||||
|
||||
ifdef HACK_SOUND
|
||||
DEF := $(DEF) -DCPS1_HACK_QSOUND
|
||||
endif
|
||||
|
||||
ifdef INCLUDE_7Z_SUPPORT
|
||||
DEF := $(DEF) -DINCLUDE_7Z_SUPPORT
|
||||
endif
|
||||
|
@ -221,10 +221,6 @@ ifdef ROM_VERIFY
|
||||
DEF := $(DEF) -DROM_VERIFY
|
||||
endif
|
||||
|
||||
ifdef HACK_SOUND
|
||||
DEF := $(DEF) -DCPS1_HACK_QSOUND
|
||||
endif
|
||||
|
||||
ifdef INCLUDE_7Z_SUPPORT
|
||||
DEF := $(DEF) -DINCLUDE_7Z_SUPPORT
|
||||
endif
|
||||
|
@ -209,10 +209,6 @@ ifdef ROM_VERIFY
|
||||
DEF := $(DEF) -DROM_VERIFY
|
||||
endif
|
||||
|
||||
ifdef HACK_SOUND
|
||||
DEF := $(DEF) -DCPS1_HACK_QSOUND
|
||||
endif
|
||||
|
||||
ifdef INCLUDE_7Z_SUPPORT
|
||||
DEF := $(DEF) -DINCLUDE_7Z_SUPPORT
|
||||
endif
|
||||
|
@ -252,10 +252,6 @@ ifdef ROM_VERIFY
|
||||
DEF := $(DEF) -DROM_VERIFY
|
||||
endif
|
||||
|
||||
ifdef HACK_SOUND
|
||||
DEF := $(DEF) -DCPS1_HACK_QSOUND
|
||||
endif
|
||||
|
||||
ifdef INCLUDE_7Z_SUPPORT
|
||||
DEF := $(DEF) -DINCLUDE_7Z_SUPPORT
|
||||
endif
|
||||
|
@ -201,10 +201,6 @@ ifdef ROM_VERIFY
|
||||
DEF := $(DEF) /DROM_VERIFY
|
||||
endif
|
||||
|
||||
ifdef HACK_SOUND
|
||||
DEF := $(DEF) /DCPS1_HACK_QSOUND
|
||||
endif
|
||||
|
||||
ifdef INCLUDE_7Z_SUPPORT
|
||||
DEF := $(DEF) /DINCLUDE_7Z_SUPPORT
|
||||
endif
|
||||
|
@ -190,6 +190,7 @@ extern CpsMemScanCallback CpsMemScanCallbackFunction;
|
||||
|
||||
// cps_run.cpp
|
||||
extern UINT8 CpsReset;
|
||||
extern UINT8 fQSoundDip;
|
||||
extern INT32 nCpsCyclesExtra;
|
||||
extern UINT8 Cpi01A, Cpi01C, Cpi01E;
|
||||
extern UINT8 fFakeDip;
|
||||
@ -473,6 +474,11 @@ void dino_decode();
|
||||
void punisher_decode();
|
||||
void slammast_decode();
|
||||
|
||||
void wof_patch(void);
|
||||
void dino_patch(void);
|
||||
void punisher_patch(void);
|
||||
void slammast_patch(void);
|
||||
|
||||
// cps2_crypt.cpp
|
||||
void cps2_decrypt_game_data();
|
||||
|
||||
|
@ -4,6 +4,8 @@
|
||||
// Inputs:
|
||||
UINT8 CpsReset = 0;
|
||||
UINT8 Cpi01A = 0, Cpi01C = 0, Cpi01E = 0;
|
||||
UINT8 fFakeDip = 0;
|
||||
UINT8 fQSoundDip = 0;
|
||||
|
||||
static INT32 nInterrupt;
|
||||
static INT32 nIrqLine, nIrqCycles;
|
||||
|
@ -22,7 +22,6 @@ INT32 CpsPaddle2Value = 0;
|
||||
INT32 CpsPaddle1 = 0;
|
||||
INT32 CpsPaddle2 = 0;
|
||||
static INT32 nDial055, nDial05d;
|
||||
UINT8 fFakeDip = 0;
|
||||
|
||||
INT32 PangEEP = 0;
|
||||
INT32 Forgottn = 0;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -165,3 +165,20 @@ void wof_decode(void) { cps1_decode(0x01234567,0x54163072,0x5151,0x51); }
|
||||
void dino_decode(void) { cps1_decode(0x76543210,0x24601357,0x4343,0x43); }
|
||||
void punisher_decode(void) { cps1_decode(0x67452103,0x75316024,0x2222,0x22); }
|
||||
void slammast_decode(void) { cps1_decode(0x54321076,0x65432107,0x3131,0x19); }
|
||||
|
||||
void wof_patch(void) {
|
||||
if (fQSoundDip & 1)
|
||||
cps1_decode(0x01234567, 0x54163072, 0x5151, 0x51);
|
||||
}
|
||||
void dino_patch(void) {
|
||||
if (fQSoundDip & 1)
|
||||
cps1_decode(0x76543210, 0x24601357, 0x4343, 0x43);
|
||||
}
|
||||
void punisher_patch(void) {
|
||||
if (fQSoundDip & 1)
|
||||
cps1_decode(0x67452103, 0x75316024, 0x2222, 0x22);
|
||||
}
|
||||
void slammast_patch(void) {
|
||||
if (fQSoundDip & 1)
|
||||
cps1_decode(0x54321076, 0x65432107, 0x3131, 0x19);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user