Skip to content

FIX: Allow arcade/Mame 2003+ to quit with menu buttonΒ #1162

Description

@schmurtzm

It's not possible to exit arcade games by simply pressing menu button.

Few time ago I've made this video : https://www.youtube.com/watch?v=Ode06KGi3QQ to explain to users the specialties of this platform. You can see it the first time you run an arcade game in Onion (it's also available in the video player).

The problem comes from Retroarch : it doesn't react as it should to the linux "kill" (sigterm) command. Normally the kill command should exit Retroarch properly but for many arcade games it just not work : Retroarch is not exited.

So I have created some issues to Retroarch repo :
For Retroarch : libretro/RetroArch#15717
And this one for Mame2003+ : libretro/mame2003-plus-libretro#1623

The interesting fact is that configuring a hotkey to exit Retroarch works properly.... So the workaround is to drive Retroarch from the Network command line API : this QUIT command exits arcade properly and it makes the save state. So we have a workaround πŸŽ‰

Many other network commands are not documented and it will be interesting to investigate on the possibilities that it gives.

Example to drive retroarch from windows : sfk199.exe udpsend 192.168.0.203 55355 QUIT
(You'll find sfk199 here).

It will require some little modifications in Onion to implement this : We justs need to have HAVE_COMMAND = 1 in our RA build and network_cmd_enable = "true" in the retroarch.cfg and then we need to update keymon to manage this new API instead of kill/sigterm.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status
πŸ“‹ Backlog / To do

Relationships

None yet

Development

No branches or pull requests

Issue actions