Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
beetle-psx-libretro
Commits
e8609eb9
Unverified
Commit
e8609eb9
authored
Oct 11, 2021
by
Libretro-Admin
Committed by
GitHub
Oct 11, 2021
Browse files
Merge pull request #823 from ds22x/master
Set game specific tweak to get Monkey Hero running past the title screen
parents
8b91df4d
2b1a2d7f
Pipeline
#64033
passed with stage
in 37 minutes and 53 seconds
Changes
4
Pipelines
28
Hide whitespace changes
Inline
Side-by-side
beetle_psx_globals.c
View file @
e8609eb9
...
@@ -19,3 +19,4 @@ bool interlace_setting_dirty = false;
...
@@ -19,3 +19,4 @@ bool interlace_setting_dirty = false;
int
aspect_ratio_setting
=
0
;
int
aspect_ratio_setting
=
0
;
bool
aspect_ratio_dirty
=
false
;
bool
aspect_ratio_dirty
=
false
;
bool
is_monkey_hero
=
false
;
beetle_psx_globals.h
View file @
e8609eb9
...
@@ -38,6 +38,7 @@ extern bool interlace_setting_dirty;
...
@@ -38,6 +38,7 @@ extern bool interlace_setting_dirty;
extern
int
aspect_ratio_setting
;
extern
int
aspect_ratio_setting
;
extern
bool
aspect_ratio_dirty
;
extern
bool
aspect_ratio_dirty
;
extern
bool
is_monkey_hero
;
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
libretro.cpp
View file @
e8609eb9
...
@@ -1494,6 +1494,12 @@ static const char *CalcDiscSCEx_BySYSTEMCNF(CDIF *c, unsigned *rr)
...
@@ -1494,6 +1494,12 @@ static const char *CalcDiscSCEx_BySYSTEMCNF(CDIF *c, unsigned *rr)
if
(
!
strncasecmp
(
bootpos
,
"cdrom:
\\
"
,
7
))
if
(
!
strncasecmp
(
bootpos
,
"cdrom:
\\
"
,
7
))
{
{
bootpos
+=
7
;
bootpos
+=
7
;
if
(
!
strncmp
(
bootpos
+
7
,
"SLUS_007.65"
,
11
)
||
!
strncmp
(
bootpos
+
7
,
"SLES_009.79"
,
11
))
{
is_monkey_hero
=
true
;
log_cb
(
RETRO_LOG_INFO
,
"Monkey Hero FBWrite Tweak Activated
\n
"
);
}
char
*
tmp
;
char
*
tmp
;
if
((
tmp
=
strchr
(
bootpos
,
'_'
)))
*
tmp
=
0
;
if
((
tmp
=
strchr
(
bootpos
,
'_'
)))
*
tmp
=
0
;
...
...
mednafen/psx/gpu.cpp
View file @
e8609eb9
...
@@ -34,6 +34,7 @@
...
@@ -34,6 +34,7 @@
#include "gpu_line.cpp"
#include "gpu_line.cpp"
extern
bool
crop_overscan
;
extern
bool
crop_overscan
;
extern
bool
is_monkey_hero
;
/*
/*
GPU display timing master clock is nominally 53.693182 MHz for NTSC PlayStations, and 53.203425 MHz for PAL PlayStations.
GPU display timing master clock is nominally 53.693182 MHz for NTSC PlayStations, and 53.203425 MHz for PAL PlayStations.
...
@@ -534,6 +535,8 @@ static CTEntry Commands[256] =
...
@@ -534,6 +535,8 @@ static CTEntry Commands[256] =
static
INLINE
bool
CalcFIFOReadyBit
(
void
)
static
INLINE
bool
CalcFIFOReadyBit
(
void
)
{
{
uint32_t
ctcommand
=
(
GPU_BlitterFIFO
.
Peek
()
>>
24
);
if
(
GPU
.
InCmd
&
(
INCMD_PLINE
|
INCMD_QUAD
))
if
(
GPU
.
InCmd
&
(
INCMD_PLINE
|
INCMD_QUAD
))
return
(
false
);
return
(
false
);
...
@@ -543,7 +546,8 @@ static INLINE bool CalcFIFOReadyBit(void)
...
@@ -543,7 +546,8 @@ static INLINE bool CalcFIFOReadyBit(void)
if
(
GPU
.
InCmd
&
(
INCMD_FBREAD
|
INCMD_FBWRITE
))
if
(
GPU
.
InCmd
&
(
INCMD_FBREAD
|
INCMD_FBWRITE
))
return
(
false
);
return
(
false
);
if
(
GPU_BlitterFIFO
.
in_count
>=
Commands
[
GPU_BlitterFIFO
.
Peek
()
>>
24
].
fifo_fb_len
)
// Change fifo_fb_len from 2 to 3 for Command_FBWrite when running Monkey Hero.
if
(
GPU_BlitterFIFO
.
in_count
>=
Commands
[
GPU_BlitterFIFO
.
Peek
()
>>
24
].
fifo_fb_len
+
((
ctcommand
>=
0xA0
)
&&
(
ctcommand
<=
0xBF
)
&&
is_monkey_hero
?
1
:
0
))
return
(
false
);
return
(
false
);
return
(
true
);
return
(
true
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment