Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions yabause/src/ctrl/src/stv.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ const u8 ShienryuNV[0x80]={
0x00,0x00,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,
0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff};

static int stv_favorite_region = STV_REGION_EU;

static u8 bitswap8(u8 in, const u8* vec)
{
Expand All @@ -82,6 +83,11 @@ void sanjeon_init(void) {
}
}

void rsgun_init(void) {
if (stv_favorite_region & (STV_REGION_EU | STV_REGION_TW | STV_REGION_US))
YuiErrorMsg("Radiant Silvergun is known for having incomplete controls on non-JP bioses");
}


Bios BiosList =
{
Expand Down Expand Up @@ -1637,7 +1643,7 @@ Game GameList[NB_STV_GAMES]={
STV_REGION_EU | STV_REGION_US | STV_REGION_JP | STV_REGION_TW,
0x05272d01,
0,
NULL,
rsgun_init,
NULL,
{
GAME_WORD_BLOB, "mpr20958.7", 0x0200000, 0x0200000, 0x00000000,
Expand Down Expand Up @@ -2272,7 +2278,6 @@ u8 hasBios = 0;
u8 hasEeprom = 0;
u8 fileFound[NB_STV_GAMES][MAX_GAME_FILES];
u8 biosFound[MAX_GAME_FILES];
static int stv_favorite_region = STV_REGION_EU;

typedef struct {
const char* filename;
Expand Down