Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Commit

Permalink
Fix Codename Tenka over HLE.
Browse files Browse the repository at this point in the history
Also fix a frontend issue with Analog mode.
  • Loading branch information
gameblabla committed Oct 7, 2019
1 parent 14eac42 commit 765c2a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/port/sdl/frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1408,13 +1408,13 @@ static int Analog_Mode_alter(u32 keys)
{
if (keys & KEY_RIGHT)
{
Config.Analog_Mode++;
if (Config.Analog_Mode > 3) Config.Analog_Mode = 2;
Config.Analog_Mode++;
if (Config.Analog_Mode > 2) Config.Analog_Mode = 2;
}
else if (keys & KEY_LEFT)
{
Config.Analog_Mode--;
if (Config.Analog_Mode < 1) Config.Analog_Mode = 0;
Config.Analog_Mode--;
if (Config.Analog_Mode < 1) Config.Analog_Mode = 0;
}

return 0;
Expand Down
2 changes: 2 additions & 0 deletions src/psxbios.c
Original file line number Diff line number Diff line change
Expand Up @@ -1712,6 +1712,8 @@ void psxBios__card_info(void) { // ab
break;
case 0x10: case 0x11: case 0x12: case 0x13:
ret = Config.Mcd2[0] ? 0x2 : 0x8;
/* Required for Tenka */
if (Config.MemoryCardHack) ret = 0x8;
break;
default:
#ifdef PSXBIOS_LOG
Expand Down

0 comments on commit 765c2a9

Please sign in to comment.