This repository has been archived on 2023-01-29. You can view files and clone it, but cannot push or open issues/pull-requests.
Go to file
Michael Smith 4ab94a1879 Add a delay to the shutdown command.
Safely close active MAME machine to avoid data loss. Fixes #1.
2017-11-10 11:11:48 +01:00
LICENSE Added license and readme 2017-11-09 22:03:27 +01:00
README.md Populated README and restructured files. 2017-11-09 22:21:46 +01:00
init.lua Add a delay to the shutdown command. 2017-11-10 11:11:48 +01:00
plugin.json Populated README and restructured files. 2017-11-09 22:21:46 +01:00

README.md

MAME system shutdown plugin

Lua plugin for the MAME UI to shut down a Windows system from the menu.

Installation

  • Create a new directory called 'shutdown' in the 'plugins' subdirectory of your MAME installation.
  • Copy the files 'init.lua' and 'plugin.json' into this directory.
  • Fire up MAME.

Usage

  • Launch a machine from within MAME.
  • Pull up the config menu by (by default hit TAB on keyboard).
  • Select 'Plugin Options' and then 'System shutdown...'.
  • Choose 'Yes' to immediately shut down the Windows based system.

How it works

Using the MAME Lua bindings to interact with the MAME UI this plugin just adds a menu item that executes "shutdown /s /t 0" on the underlying operating system (Windows). This will cause the PC to shut down gracefully without having to leave MAME.

I wrote this plugin because my cabinet setup doesn't have a keyboard or mouse connected by default and I wanted a quick and dirty way to safely shut down with my configured controls from within MAME.

To do

  • Support other operating systems.