summaryrefslogtreecommitdiffstatshomepage
path: root/plugins
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-10-20 02:03:43 +1100
committer Vas Crabb <vas@vastheman.com>2021-10-20 02:03:43 +1100
commit0a9ea09a9a328884b61ce57c2e3b51705da50467 (patch)
tree98153d6f2244b0053d9c1894b5c71277fb18522d /plugins
parent9e7779bdd5c17a847ed4c06a9b7e68a39ec6576b (diff)
Tie up a few loose ends:
debugger: Octal cheats for octal address spaces. frontend: Pass events for automatically generated menu items to the plugin - they will have index zero. frontend: Don't try calling the data plugin from the main menu if the system isn't starting yet - doing so will prevent the data plugin from loading at all.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/autofire/init.lua12
-rw-r--r--plugins/autofire/plugin.json16
-rw-r--r--plugins/timer/init.lua11
3 files changed, 18 insertions, 21 deletions
diff --git a/plugins/autofire/init.lua b/plugins/autofire/init.lua
index 72ee65672d4..cfb055b7465 100644
--- a/plugins/autofire/init.lua
+++ b/plugins/autofire/init.lua
@@ -1,11 +1,11 @@
-- license:BSD-3-Clause
-- copyright-holders:Jack Li
-local exports = {}
-exports.name = 'autofire'
-exports.version = '0.0.3'
-exports.description = 'Autofire plugin'
-exports.license = 'The BSD 3-Clause License'
-exports.author = { name = 'Jack Li' }
+local exports = {
+ name = 'autofire',
+ version = '0.0.3',
+ description = 'Autofire plugin',
+ license = 'The BSD 3-Clause License',
+ author = { name = 'Jack Li' } }
local autofire = exports
diff --git a/plugins/autofire/plugin.json b/plugins/autofire/plugin.json
index a803c8be09e..56c36ba751f 100644
--- a/plugins/autofire/plugin.json
+++ b/plugins/autofire/plugin.json
@@ -1,10 +1,10 @@
{
- "plugin": {
- "name": "autofire",
- "description": "Autofire plugin",
- "version": "0.0.3",
- "author": "Jack Li",
- "type": "plugin",
- "start": "false"
- }
+ "plugin": {
+ "name": "autofire",
+ "description": "Autofire plugin",
+ "version": "0.0.3",
+ "author": "Jack Li",
+ "type": "plugin",
+ "start": "false"
+ }
}
diff --git a/plugins/timer/init.lua b/plugins/timer/init.lua
index f0ddabbcf50..07b3e20162b 100644
--- a/plugins/timer/init.lua
+++ b/plugins/timer/init.lua
@@ -91,16 +91,13 @@ function timer.startplugin()
local function menu_populate()
local time = os.time() - start_time
- return {{ _("Current time"), "", "off" },
- { sectohms(time), "", "off" },
- { _("Total time"), "", "off" },
- { sectohms(total_time + time), "", "off" },
- { _("Play Count"), "", "off" },
- { play_count, "", "off" }}
+ return {{ _("Current time"), sectohms(time), "off" },
+ { _("Total time"), sectohms(total_time + time), "off" },
+ { _("Play Count"), play_count, "off" }}
end
local function menu_callback(index, event)
- return true
+ return false
end
emu.register_menu(menu_callback, menu_populate, _("Timer"))