diff options
Diffstat (limited to 'plugins/timecode/init.lua')
-rw-r--r-- | plugins/timecode/init.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/timecode/init.lua b/plugins/timecode/init.lua index 93435ef2870..1de94c034ba 100644 --- a/plugins/timecode/init.lua +++ b/plugins/timecode/init.lua @@ -10,6 +10,8 @@ local exports = { local timecode = exports +local frame_subscription, stop_subscription + function timecode.startplugin() local file -- the timecode log file local write -- whether to record a timecode on the next emulated frame @@ -338,10 +340,10 @@ function timecode.startplugin() end - emu.register_frame(process_frame) + frame_subscription = emu.add_machine_frame_notifier(process_frame) emu.register_frame_done(process_frame_done) emu.register_prestart(start) - emu.register_stop(stop) + stop_subscription = emu.add_machine_stop_notifier(stop) emu.register_menu(menu_callback, menu_populate, _p('plugin-timecode', 'Timecode Recorder')) end |