Disable menu LCD filter unless playing GB or GBA.

Since they share the filter function, but can change one from another
(setting on the GBA would apply to GB and vice-versa), we allow only
the proper setting to be toggled while a ROM is loaded.

If GB ROM, then `Options` > `Game Boy` > `LCD Filter` is enabled.

Likewise for GBA. If neither, then no option is enabled.
This commit is contained in:
Edênis Freindorfer Azevedo 2020-03-04 19:45:03 -03:00 committed by Rafael Kitover
parent 060010699d
commit 166cf446f7
1 changed files with 2 additions and 2 deletions

View File

@ -2883,7 +2883,7 @@ EVT_HANDLER(AGBPrinter, "Enable AGB printer")
update_opts();
}
EVT_HANDLER(GBALcdFilter, "Enable LCD filter")
EVT_HANDLER_MASK(GBALcdFilter, "Enable LCD filter", CMDEN_GBA)
{
bool menuPress;
GetMenuOptionBool("GBALcdFilter", menuPress);
@ -2893,7 +2893,7 @@ EVT_HANDLER(GBALcdFilter, "Enable LCD filter")
update_opts();
}
EVT_HANDLER(GBLcdFilter, "Enable LCD filter")
EVT_HANDLER_MASK(GBLcdFilter, "Enable LCD filter", CMDEN_GB)
{
bool menuPress;
GetMenuOptionBool("GBLcdFilter", menuPress);