mirror of
https://github.com/libretro/nestopia.git
synced 2024-11-26 18:20:30 +00:00
libretro: Add the Royaltea palette
- The Royaltea palette was created based on an unmodified AV Famicom plugged into a low-usage PVM-2530, using RCA cables with all settings at default. It has a distinct and beautiful look.
This commit is contained in:
parent
c21b4748c7
commit
8707e779e0
@ -120,6 +120,26 @@ static const byte cxa2025as_palette[64][3] =
|
||||
{0x91,0xE4,0xFE}, {0xAC,0xAC,0xAC}, {0x00,0x00,0x00}, {0x00,0x00,0x00}
|
||||
};
|
||||
|
||||
static const byte royaltea_palette[64][3] =
|
||||
{
|
||||
{0x5A,0x61,0x65}, {0x00,0x23,0xA8}, {0x0F,0x17,0xB0}, {0x28,0x12,0x9F},
|
||||
{0x55,0x0B,0x61}, {0x6B,0x0A,0x11}, {0x6E,0x0D,0x00}, {0x5E,0x19,0x00},
|
||||
{0x3C,0x24,0x02}, {0x00,0x31,0x04}, {0x00,0x35,0x08}, {0x00,0x34,0x1F},
|
||||
{0x00,0x2C,0x55}, {0x00,0x00,0x00}, {0x00,0x00,0x00}, {0x00,0x00,0x00},
|
||||
{0xA7,0xB5,0xBC}, {0x00,0x59,0xFF}, {0x2A,0x44,0xFF}, {0x52,0x3C,0xF1},
|
||||
{0x9F,0x34,0xBA}, {0xB3,0x28,0x46}, {0xBB,0x2D,0x09}, {0x9E,0x41,0x00},
|
||||
{0x86,0x5A,0x00}, {0x24,0x6D,0x02}, {0x00,0x73,0x12}, {0x00,0x71,0x56},
|
||||
{0x00,0x66,0xA6}, {0x00,0x00,0x00}, {0x00,0x00,0x00}, {0x00,0x00,0x00},
|
||||
{0xFF,0xFF,0xFF}, {0x4B,0x9F,0xFF}, {0x5A,0x91,0xFF}, {0x86,0x7E,0xFF},
|
||||
{0xD9,0x7D,0xFF}, {0xFF,0x95,0xCF}, {0xFF,0x8E,0x76}, {0xF7,0xA2,0x47},
|
||||
{0xEF,0xB4,0x12}, {0x8C,0xC5,0x1C}, {0x48,0xD0,0x4A}, {0x10,0xD1,0x97},
|
||||
{0x00,0xC9,0xF0}, {0x43,0x48,0x4B}, {0x00,0x00,0x00}, {0x00,0x00,0x00},
|
||||
{0xFF,0xFF,0xFF}, {0xB1,0xD9,0xFF}, {0xB1,0xCF,0xFF}, {0xBC,0xC8,0xFF},
|
||||
{0xE3,0xC8,0xFF}, {0xFF,0xD3,0xF7}, {0xFF,0xD5,0xCB}, {0xFF,0xDE,0xB9},
|
||||
{0xFF,0xE5,0xAD}, {0xDB,0xF6,0xAF}, {0xB7,0xFB,0xC4}, {0x9C,0xFB,0xE6},
|
||||
{0x96,0xF7,0xFF}, {0xB1,0xC0,0xC7}, {0x00,0x00,0x00}, {0x00,0x00,0x00}
|
||||
};
|
||||
|
||||
static const byte pal_palette[64][3] =
|
||||
{
|
||||
{0x80,0x80,0x80}, {0x00,0x00,0xBA}, {0x37,0x00,0xBF}, {0x84,0x00,0xA6},
|
||||
@ -1079,6 +1099,10 @@ static void check_variables(void)
|
||||
video.GetPalette().SetMode(Api::Video::Palette::MODE_CUSTOM);
|
||||
video.GetPalette().SetCustom(cxa2025as_palette, Api::Video::Palette::STD_PALETTE);
|
||||
}
|
||||
else if (strcmp(var.value, "royaltea") == 0) {
|
||||
video.GetPalette().SetMode(Api::Video::Palette::MODE_CUSTOM);
|
||||
video.GetPalette().SetCustom(royaltea_palette, Api::Video::Palette::STD_PALETTE);
|
||||
}
|
||||
else if (strcmp(var.value, "pal") == 0) {
|
||||
video.GetPalette().SetMode(Api::Video::Palette::MODE_CUSTOM);
|
||||
video.GetPalette().SetCustom(pal_palette, Api::Video::Palette::STD_PALETTE);
|
||||
|
@ -143,14 +143,15 @@ struct retro_core_option_v2_definition option_defs_us[] = {
|
||||
"video",
|
||||
{
|
||||
{ "cxa2025as", "CXA2025AS" },
|
||||
{ "royaltea", "Royaltea" },
|
||||
{ "consumer", "Consumer" },
|
||||
{ "canonical", "Canonical" },
|
||||
{ "alternative", "Alternative" },
|
||||
{ "rgb", "RGB" },
|
||||
{ "pal", "PAL" },
|
||||
{ "composite-direct-fbx", "Composite Direct FBx" },
|
||||
{ "pvm-style-d93-fbx", "PVM-style D93 FBx" },
|
||||
{ "ntsc-hardware-fbx", "NTSC hardware FBx" },
|
||||
{ "composite-direct-fbx", "Composite Direct FBX" },
|
||||
{ "pvm-style-d93-fbx", "PVM-style D93 FBX" },
|
||||
{ "ntsc-hardware-fbx", "NTSC hardware FBX" },
|
||||
{ "nes-classic-fbx-fs", "NES Classic FBx (fixed)" },
|
||||
{ "raw", "Raw" },
|
||||
{ "custom", "Custom" },
|
||||
|
Loading…
Reference in New Issue
Block a user