libretro / gambatte-libretro

Hard fork of Gambatte to the libretro API.
http://sourceforge.net/projects/gambatte/
GNU General Public License v2.0
105 stars 79 forks source link

Enable switching of internal palette via RetroPad L/R #204

Closed jdgleaver closed 3 years ago

jdgleaver commented 3 years ago

As reported in #182, testing the various internal palettes by selecting them via the menu is incredibly laborious. This PR adds the ability to switch to the next/previous internal palette via the RetroPad R/L buttons while content is running:

screen_record__2021_10_06__17_11_02

This PR serves as a test case for the new RETRO_ENVIRONMENT_SET_VARIABLE callback, and the functionality here is only enabled when using frontends that support this callback.

Closes #182