devinacker / bsnes-plus

debug-oriented fork of bsnes
http://bsnes.revenant1.net
327 stars 92 forks source link

Fix aeroplane mode turning on at regular intervals #348

Closed TheKodeToad closed 1 year ago

TheKodeToad commented 1 year ago

Fixes #303 and #344. Instead of pressing key 255 which seems to trigger aeroplane mode at least in GNOME, it sends a DBus message.

supressScreenSaver isn't actually needed any more.

Partially based on https://github.com/libretro/RetroArch/blob/master/gfx/common/dbus_common.c (I only used it to work out how to use dbus_message_append_args so licensing isn't a concern)

P.S. it seems this repo doesn't have a license. I don't think this is allowed since bsnes is GPL licensed.

devinacker commented 1 year ago

Thanks for looking into this; I still hadn't had time to set up a fresh Linux dev environment for myself.

P.S. it seems this repo doesn't have a license. I don't think this is allowed since bsnes is GPL licensed.

The license is specifically mentioned as GPLv2 in the readme, and the license text is viewable within bsnes-plus itself, same as the version of bsnes that it's originally based on.

TheKodeToad commented 1 year ago

Oops, sorry! Most repos don't put the license there so I never looked.