Add a delay to the shutdown command.
Safely close active MAME machine to avoid data loss. Fixes #1.
This commit is contained in:
parent
878929f477
commit
4ab94a1879
3
init.lua
3
init.lua
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user