Add original Wii Virtual Console and Restored Wii VC NES palettes (SuperrSonic) (#98)

This commit is contained in:
saulfabreg Wii VC Project
2025-04-23 19:25:45 -05:00
committed by GitHub
parent b3eb368603
commit d2eefab298
2 changed files with 50 additions and 0 deletions

View File

@@ -223,6 +223,46 @@ static const byte nes_classic_fbx_fs_palette[64][3] =
{0xB9,0xEA,0xE9}, {0xAB,0xAB,0xAB}, {0x00,0x00,0x00}, {0x00,0x00,0x00}
};
static const byte restored_wii_vc_palette[64][3] =
{
{0x66,0x66,0x66}, {0x00,0x00,0x95}, {0x10,0x00,0x8B}, {0x39,0x00,0x7D},
{0x5C,0x00,0x68}, {0x66,0x00,0x00}, {0x5C,0x00,0x00}, {0x39,0x18,0x00},
{0x22,0x37,0x00}, {0x00,0x43,0x16}, {0x00,0x43,0x00}, {0x00,0x39,0x16},
{0x02,0x2D,0x5E}, {0x00,0x00,0x00}, {0x00,0x00,0x00}, {0x00,0x00,0x00},
{0xA3,0x9E,0xA3}, {0x00,0x43,0xB9}, {0x45,0x02,0xF1}, {0x69,0x02,0xCF},
{0x8C,0x00,0xAC}, {0x96,0x00,0x50}, {0x96,0x2E,0x02}, {0x7E,0x42,0x00},
{0x5C,0x66,0x00}, {0x22,0x7D,0x02}, {0x16,0x7D,0x02}, {0x02,0x7D,0x46},
{0x02,0x66,0x7E}, {0x16,0x16,0x16}, {0x00,0x00,0x00}, {0x00,0x00,0x00},
{0xF2,0xF2,0xF2}, {0x68,0x9E,0xFF}, {0x8C,0x7B,0xFF}, {0xB9,0x70,0xFF},
{0xE6,0x71,0xF2}, {0xF2,0x66,0xB9}, {0xFE,0x89,0x68}, {0xCF,0x9E,0x46},
{0xAC,0xA0,0x3B}, {0x7E,0xBC,0x02}, {0x4E,0xC7,0x45}, {0x45,0xC7,0x7E},
{0x50,0xC7,0xC6}, {0x4E,0x4E,0x4E}, {0x00,0x00,0x00}, {0x00,0x00,0x00},
{0xFF,0xFF,0xFF}, {0xC4,0xDC,0xFE}, {0xC6,0xC7,0xF4}, {0xDB,0xC7,0xFF},
{0xE9,0xBD,0xFF}, {0xF2,0xC6,0xDC}, {0xF4,0xD2,0xC4}, {0xDB,0xC8,0xAE},
{0xDB,0xDD,0xA0}, {0xCF,0xE9,0xAE}, {0xB9,0xEA,0xAC}, {0xAE,0xDC,0xB9},
{0xA1,0xD2,0xC6}, {0xDE,0xDE,0xDE}, {0x00,0x00,0x00}, {0x00,0x00,0x00}
};
static const byte wii_vc_palette[64][3] =
{
{0x49,0x49,0x49}, {0x00,0x00,0x6a}, {0x09,0x00,0x63}, {0x29,0x00,0x59},
{0x42,0x00,0x4a}, {0x49,0x00,0x00}, {0x42,0x00,0x00}, {0x29,0x11,0x00},
{0x18,0x27,0x00}, {0x00,0x30,0x10}, {0x00,0x30,0x00}, {0x00,0x29,0x10},
{0x01,0x20,0x43}, {0x00,0x00,0x00}, {0x00,0x00,0x00}, {0x00,0x00,0x00},
{0x74,0x71,0x74}, {0x00,0x30,0x84}, {0x31,0x01,0xac}, {0x4b,0x01,0x94},
{0x64,0x00,0x7b}, {0x6b,0x00,0x39}, {0x6b,0x21,0x01}, {0x5a,0x2f,0x00},
{0x42,0x49,0x00}, {0x18,0x59,0x01}, {0x10,0x59,0x01}, {0x01,0x59,0x32},
{0x01,0x49,0x5a}, {0x10,0x10,0x10}, {0x00,0x00,0x00}, {0x00,0x00,0x00},
{0xad,0xad,0xad}, {0x4a,0x71,0xb6}, {0x64,0x58,0xd5}, {0x84,0x50,0xe6},
{0xa4,0x51,0xad}, {0xad,0x49,0x84}, {0xb5,0x62,0x4a}, {0x94,0x71,0x32},
{0x7b,0x72,0x2a}, {0x5a,0x86,0x01}, {0x38,0x8e,0x31}, {0x31,0x8e,0x5a},
{0x39,0x8e,0x8d}, {0x38,0x38,0x38}, {0x00,0x00,0x00}, {0x00,0x00,0x00},
{0xb6,0xb6,0xb6}, {0x8c,0x9d,0xb5}, {0x8d,0x8e,0xae}, {0x9c,0x8e,0xbc},
{0xa6,0x87,0xbc}, {0xad,0x8d,0x9d}, {0xae,0x96,0x8c}, {0x9c,0x8f,0x7c},
{0x9c,0x9e,0x72}, {0x94,0xa6,0x7c}, {0x84,0xa7,0x7b}, {0x7c,0x9d,0x84},
{0x73,0x96,0x8d}, {0xde,0xde,0xde}, {0x00,0x00,0x00}, {0x00,0x00,0x00}
};
int crossx = 0;
int crossy = 0;
@@ -1194,6 +1234,14 @@ static void check_variables(void)
video.GetPalette().SetMode(Api::Video::Palette::MODE_CUSTOM);
video.GetPalette().SetCustom(nes_classic_fbx_fs_palette, Api::Video::Palette::STD_PALETTE);
}
else if (strcmp(var.value, "restored-wii-vc") == 0) {
video.GetPalette().SetMode(Api::Video::Palette::MODE_CUSTOM);
video.GetPalette().SetCustom(restored_wii_vc_palette, Api::Video::Palette::STD_PALETTE);
}
else if (strcmp(var.value, "wii-vc") == 0) {
video.GetPalette().SetMode(Api::Video::Palette::MODE_CUSTOM);
video.GetPalette().SetCustom(wii_vc_palette, Api::Video::Palette::STD_PALETTE);
}
else if (strcmp(var.value, "raw") == 0) {
/* outputs raw chroma/level/emphasis in the R/G/B channels
* that can be decoded by the frontend (using shaders for example)

View File

@@ -154,6 +154,8 @@ struct retro_core_option_v2_definition option_defs_us[] = {
{ "pvm-style-d93-fbx", "PVM-style D93 FBX" },
{ "ntsc-hardware-fbx", "NTSC hardware FBX" },
{ "nes-classic-fbx-fs", "NES Classic FBx (fixed)" },
{ "restored-wii-vc", "Restored Wii VC" },
{ "wii-vc", "Wii Virtual Console" },
{ "raw", "Raw" },
{ "custom", "Custom" },
{ NULL, NULL },