aboutsummaryrefslogtreecommitdiff
path: root/overrides/gambatte.h
blob: 1482d27c456ec7176c05d710279da038288fdbba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
#include "overrides.h"

static const struct core_override_option gambatte_core_option_overrides[] = {
	{
		.key = "gambatte_gb_colorization",
		.info = "'Auto' selects the 'best' palette. 'Internal' uses 'Internal Palette' option. 'Custom' loads user palette from system directory.",
	},
	{
		.key = "gambatte_gb_internal_palette",
		.info = "Selects palette used when 'GB Colorization' is set to 'Internal.'",
		.options = {
			[50] = { "Special 4", NULL },
		}
	},
	{
		.key = "gambatte_gb_palette_twb64_1",
		.desc = "TWB64 - Pack 1",
		.default_value = "Aqours Blue",
		.options = {
			{ "Aqours Blue",               NULL },
			{ "Anime Expo Ver.",           NULL },
			{ "SpongeBob Yellow",          NULL },
			{ "Patrick Star Pink",         NULL },
			{ "Neon Red",                  NULL },
			{ "Neon Blue",                 NULL },
			{ "Neon Yellow",               NULL },
			{ "Neon Green",                NULL },
			{ "Neon Pink",                 NULL },
			{ "Mario Red",                 NULL },
			{ "Nick Orange",               NULL },
			{ "Virtual Boy Ver.",          NULL },
			{ "Golden Wild",               NULL },
			{ "Builder Yellow",            NULL },
			{ "Classic Blurple",           NULL },
			{ "765 Production Ver.",       NULL },
			{ "Superball Ivory",           NULL },
			{ "Crunchyroll Orange",        NULL },
			{ "Muse Pink",                 NULL },
			{ "Nijigasaki Yellow",         NULL },
			{ "Gamate Ver.",               NULL },
			{ "Greenscale Ver.",           NULL },
			{ "Odyssey Gold",              NULL },
			{ "Super Saiyan God",          NULL },
			{ "Super Saiyan Blue",         NULL },
			{ "Bizarre Pink",              NULL },
			{ "Switch Lite Ver.",          NULL },
			{ "Game.com Ver.",             NULL },
			{ "Sanrio Pink",               NULL },
			{ "BANDAI NAMCO Ver.",         NULL },
			{ "Cosmo Green",               NULL },
			{ "Wanda Pink",                NULL },
			{ "Zelda DX Ver.",             NULL },
			{ "Travel Wood",               NULL },
			{ "Pokemon Ver.",              NULL },
			{ "Game Grump Orange",         NULL },
			{ "Scooby-Doo Ver.",           NULL },
			{ "Pokemon mini Ver.",         NULL },
			{ "Supervision Ver.",          NULL },
			{ "DMG Ver.",                  NULL },
			{ "Pocket Ver.",               NULL },
			{ "Light Ver.",                NULL },
			{ "Miraitowa Blue",            NULL },
			{ "Someity Pink",              NULL },
			{ "Pikachu Yellow",            NULL },
			{ "Eevee Brown",               NULL },
			{ "Microvision Ver.",          NULL },
			{ "TI-83 Ver.",                NULL },
			{ "Aegis Cherry",              NULL },
			{ "Labo Fawn",                 NULL },
			{ "MILLION LIVE GOLD!",        NULL },
			{ "Tokyo Midtown Ver.",        NULL },
			{ "VMU Ver.",                  NULL },
			{ "Game Master Ver.",          NULL },
			{ "Android Green",             NULL },
			{ "Ticketmaster Azure",        NULL },
			{ "Google Red",                NULL },
			{ "Google Blue",               NULL },
			{ "Google Yellow",             NULL },
			{ "Google Green",              NULL },
			{ "WonderSwan Ver.",           NULL },
			{ "Neo Geo Pocket Ver.",       NULL },
			{ "Dew Green",                 NULL },
			{ "Coca-Cola Red",             NULL },
			{ "GameKing Ver.",             NULL },
			{ "Do The Dew Ver.",           NULL },
			{ "Digivice Ver.",             NULL },
			{ "Bikini Bottom Ver.",        NULL },
			{ "Blossom Pink",              NULL },
			{ "Bubbles Blue",              NULL },
			{ "Buttercup Green",           NULL },
			{ "NASCAR Ver.",               NULL },
			{ "Lemon-Lime Green",          NULL },
			{ "Mega Man V Ver.",           NULL },
			{ "Tamagotchi Ver.",           NULL },
			{ "Phantom Red",               NULL },
			{ "Halloween Ver.",            NULL },
			{ "Christmas Ver.",            NULL },
			{ "Cardcaptor Pink",           NULL },
			{ "Pretty Guardian Gold",      NULL },
			{ "Camoflauge Ver.",           NULL },
			{ "Legendary Sp. Saiyan",      NULL },
			{ "Super Saiyan Rose",         NULL },
			{ "Super Saiyan",              NULL },
			{ "Mst. Ult. Instinct",        NULL },
			{ "Saint Snow Red",            NULL },
			{ "Yellow Banana",             NULL },
			{ "Green Banana",              NULL },
			{ "Super Saiyan 3",            NULL },
			{ "Sp. Saiyan Blue Evo.",      NULL },
			{ "Pocket Tales Ver.",         NULL },
			{ "Investigation Yellow",      NULL },
			{ "S.E.E.S. Blue",             NULL },
			{ "Game Awards Cyan",          NULL },
			{ "Hokage Orange",             NULL },
			{ "Straw Hat Red",             NULL },
			{ "Sword Art Cyan",            NULL },
			{ "Deku Alpha Emerald",        NULL },
			{ "Blue Stripes Ver.",         NULL },
			{ "Stone Orange",              NULL },
			{ NULL, NULL }
		}
	},
	{
		.key = "gambatte_gb_palette_twb64_2",
		.desc = "TWB64 - Pack 2",
		.default_value = "765PRO Pink",
		.options = {
			{ "765PRO Pink",               NULL },
			{ "CINDERELLA Blue",           NULL },
			{ "MILLION Yellow!",           NULL },
			{ "SideM Green",               NULL },
			{ "SHINY Sky Blue",            NULL },
			{ "Angry Volcano Ver.",        NULL },
			{ "Yo-kai Pink",               NULL },
			{ "Yo-kai Green",              NULL },
			{ "Yo-kai Blue",               NULL },
			{ "Yo-kai Purple",             NULL },
			{ "Aquatic Iro",               NULL },
			{ "Tea Midori",                NULL },
			{ "Sakura Pink",               NULL },
			{ "Wisteria Murasaki",         NULL },
			{ "Oni Aka",                   NULL },
			{ "Golden Kiiro",              NULL },
			{ "Silver Shiro",              NULL },
			{ "Fruity Orange",             NULL },
			{ "AKB48 Pink",                NULL },
			{ "Miku Blue",                 NULL },
			{ "Fairy Tail Red",            NULL },
			{ "Survey Corps Brown",        NULL },
			{ "Island Green",              NULL },
			{ "Mania Plus Green",          NULL },
			{ "Ninja Turtle Green",        NULL },
			{ "Slime Blue",                NULL },
			{ "Lime Midori",               NULL },
			{ "Ghostly Aoi",               NULL },
			{ "Retro Bogeda",              NULL },
			{ "Royal Blue",                NULL },
			{ "Neon Purple",               NULL },
			{ "Neon Orange",               NULL },
			{ "Moonlight Vision",          NULL },
			{ "Tokyo Red",                 NULL },
			{ "Paris Gold",                NULL },
			{ "Beijing Blue",              NULL },
			{ "Pac-Man Yellow",            NULL },
			{ "Irish Green",               NULL },
			{ "Kakarot Orange",            NULL },
			{ "Dragon Ball Orange",        NULL },
			{ "Christmas Gold",            NULL },
			{ "Pepsi Blue",                NULL },
			{ "Bubblun Green",             NULL },
			{ "Bobblun Blue",              NULL },
			{ "Baja Blast Storm",          NULL },
			{ "Olympic Gold",              NULL },
			{ "Value Orange",              NULL },
			{ "Liella Purple!",            NULL },
			{ "Olympic Silver",            NULL },
			{ "Olympic Bronze",            NULL },
			{ "ANA Sky Blue",              NULL },
			{ "Nijigasaki Orange",         NULL },
			{ "HoloBlue",                  NULL },
			{ "Wrestling Red",             NULL },
			{ "Yoshi Egg Green",           NULL },
			{ "Pokedex Red",               NULL },
			{ "Disney Dream Blue",         NULL },
			{ "Xbox Green",                NULL },
			{ "Sonic Mega Blue",           NULL },
			{ "G4 Orange",                 NULL },
			{ "Scarlett Green",            NULL },
			{ "Glitchy Blue",              NULL },
			{ "Classic LCD",               NULL },
			{ "3DS VC Ver.",               NULL },
			{ "PocketStation Ver.",        NULL },
			{ "Game and Gold",             NULL },
			{ "Smurfy Blue",               NULL },
			{ "Swampy Ogre Green",         NULL },
			{ "Sailor Spinach Green",      NULL },
			{ "Shenron Green",             NULL },
			{ "Berserk Blood",             NULL },
			{ "Super Star Pink",           NULL },
			{ "Gamebuino Clas. Ver.",      NULL },
			{ "Barbie Pink",               NULL },
			{ "Star Command Green",        NULL },
			{ "Nokia 3310 Ver.",           NULL },
			{ "Clover Green",              NULL },
			{ "Crash Orange",              NULL },
			{ "Famicom Disk Yellow",       NULL },
			{ "Team Rocket Red",           NULL },
			{ "SEIKO Timer Yellow",        NULL },
			{ "PINK109",                   NULL },
			{ "Doraemon Blue",             NULL },
			{ "Fury Blue",                 NULL },
			{ "Rockstar Orange",           NULL },
			{ "Puyo Puyo Green",           NULL },
			{ "Susan G. Pink",             NULL },
			{ "Pizza Hut Red",             NULL },
			{ "Plumbob Green",             NULL },
			{ "Grand Ivory",               NULL },
			{ "Demon's Gold",              NULL },
			{ "SEGA Tokyo Blue",           NULL },
			{ "Champion Blue",             NULL },
			{ "DK Barrel Brown",           NULL },
			{ "Evangelion Green",          NULL },
			{ "Equestrian Purple",         NULL },
			{ "Autobot Red",               NULL },
			{ "Niconico Sea Green",        NULL },
			{ "Duracell Copper",           NULL },
			{ "TOKYO SKYTREE BLUE",        NULL },
			{ NULL, NULL },
		}
	},
	{
		.key = "gambatte_gbc_color_correction",
		.info = "Adjusts colors to match the display of real GBC hardware. 'GBC Only' only applies correction when playing GBC games or using a GBC palette."
	},
	{
		.key = "gambatte_gbc_color_correction_mode",
		.desc = "CC Mode",
		.info = "'Accurate' produces output almost indistinguishable from a real GBC LCD panel. 'Fast' merely darkens colors and reduces saturation."
	},
	{
		.key = "gambatte_gbc_frontlight_position",
		.desc = "CC Frontlight",
		.info = "Simulates the GBC LCD panel when illuminated from different angles. This setting only applies when 'Color Correction Mode' is set to 'Accurate'."
	},
	{
		.key = "gambatte_dark_filter_level",
		.desc = "Dark Level",
		.info = "Enable luminosity-based brightness reduction. May be used to avoid glare/eye strain when playing games with white backgrounds."
	},
	{
		.key = "gambatte_gb_hwmode",
		.desc = "Hardware (restart)",
		.info = "Which type of hardware to emulate. 'Auto' is recommended. 'GBA' unlocks extra features in certain 'GBA enhanced' Game Boy Color games."
	},
	{
		.key = "gambatte_gb_bootloader",
		.desc = "Boot Logo (restart)",
	},
	{
		.key = "gambatte_mix_frames",
		.desc = "Blending",
		.info = "Simulates LCD ghosting effects. 'Simple' performs a 50:50 mix. 'Ghosting' mimics LCD response times with multiple buffered frames.",
		.options = {
			[2] = { "lcd_ghosting",         "Ghosting (Accurate)" },
			[3] = { "lcd_ghosting_fast",    "Ghosting (Fast)"     },
			[4] = { "lcd_ghosting_fastest", "Ghosting (Fastest)"  },
		}
	},
	{
		.key = "gambatte_up_down_allowed",
		.desc = "Opp. Directions",
		.info = "Enabling this will allow pressing / quickly alternating / holding both left and right (or up and down) directions at the same time."
	},
	{
		.key = "gambatte_rumble_level",
		.blocked = true
	},
	{
		.key = "gambatte_show_gb_link_settings",
		.blocked = true
	},
	{ NULL }
};

me_bind_action gambatte_ctrl_actions[] =
{
	{ "UP       ",  1 << RETRO_DEVICE_ID_JOYPAD_UP},
	{ "DOWN     ",  1 << RETRO_DEVICE_ID_JOYPAD_DOWN },
	{ "LEFT     ",  1 << RETRO_DEVICE_ID_JOYPAD_LEFT },
	{ "RIGHT    ",  1 << RETRO_DEVICE_ID_JOYPAD_RIGHT },
	{ "A BUTTON ",  1 << RETRO_DEVICE_ID_JOYPAD_A },
	{ "B BUTTON ",  1 << RETRO_DEVICE_ID_JOYPAD_B },
	{ "A TURBO  ",  1 << RETRO_DEVICE_ID_JOYPAD_X },
	{ "B TURBO  ",  1 << RETRO_DEVICE_ID_JOYPAD_Y },
	{ "START    ",  1 << RETRO_DEVICE_ID_JOYPAD_START },
	{ "SELECT   ",  1 << RETRO_DEVICE_ID_JOYPAD_SELECT },
	{ NULL,       0 }
};

#define gambatte_overrides {                                    \
	.core_name = "gambatte",                                \
	.actions = gambatte_ctrl_actions,                       \
	.action_size = array_size(gambatte_ctrl_actions),       \
	.options = gambatte_core_option_overrides               \
}