Add a delay to the shutdown command.

Safely close active MAME machine to avoid data loss. Fixes #1.
This commit is contained in:
Michael Smith 2017-11-10 11:04:14 +01:00
parent 878929f477
commit 4ab94a1879

View File

@ -16,7 +16,8 @@ function shutdown.startplugin()
local function menu_callback(index, event) local function menu_callback(index, event)
if event == "select" and index == 3 then if event == "select" and index == 3 then
os.execute("shutdown /s /t 0") manager:machine():exit()
os.execute("shutdown /s /t 10")
end end
return false return false
end end