mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
33 lines
804 B
Lua
33 lines
804 B
Lua
-- license:BSD-3-Clause
|
|
-- copyright-holders:Miodrag Milanovic
|
|
local exports = {}
|
|
exports.name = "dummy"
|
|
exports.version = "0.0.1"
|
|
exports.description = "A dummy example"
|
|
exports.license = "The BSD 3-Clause License"
|
|
exports.author = { name = "Miodrag Milanovic" }
|
|
|
|
local dummy = exports
|
|
|
|
function dummy.startplugin()
|
|
emu.register_start(function()
|
|
emu.print_verbose("Starting " .. emu.gamename())
|
|
end)
|
|
|
|
emu.register_stop(function()
|
|
emu.print_verbose("Exiting " .. emu.gamename())
|
|
end)
|
|
|
|
local function menu_populate()
|
|
return {{ "This is a", "test", "off" }, { "Also a", "test", 0 }}
|
|
end
|
|
|
|
local function menu_callback(index, event)
|
|
emu.print_verbose("index: " .. index .. " event: " .. event)
|
|
return false
|
|
end
|
|
|
|
emu.register_menu(menu_callback, menu_populate, "Dummy")
|
|
end
|
|
|
|
return exports
|