[Scummvm-devel] ATTN Porters: New kFeatureNoQuit feature
Thierry Crozat
criezy at scummvm.org
Sun Apr 26 15:30:26 UTC 2020
Hello Porters,
Today I merged my pull request to add a kFeatureNoQuit feature to OSystem. When a backend supports this feature, this will:
- Remove the Quit button from the Launcher.
- Remove the Quit button from the Global Main Menu.
- Remap the EVENT_QUIT to EVENT_RTL so that games that try to quit (e.g at the end of the game, or if they have a Quit menu or button) will return to the launcher instead.
Currently the only backends that uses this feature are the iPhone and iOS7 ports.
If you are maintaining a backend that would benefit from this feature to prevent the user from quitting the application, you can opt in by returning true for the kFeatureNoQuit feature in your implementation of OSystem::hasFeature(Feature). This is all you need to do.
Thierry
More information about the Scummvm-devel
mailing list