diff options
author | 2021-11-02 15:31:03 +1100 | |
---|---|---|
committer | 2021-11-02 15:31:03 +1100 | |
commit | d775a2731d7be00fe53932c43cb2321769ef1989 (patch) | |
tree | 16c75c22431717bb731c238e8796f41f4bba006d /plugins/inputmacro/inputmacro_persist.lua | |
parent | e4c0f2ddacb44863f4b9bb52b76d1f5f8e5b03a8 (diff) |
plugins: Moved the timecode recording functionality to a plugin.
Diffstat (limited to 'plugins/inputmacro/inputmacro_persist.lua')
-rw-r--r-- | plugins/inputmacro/inputmacro_persist.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/inputmacro/inputmacro_persist.lua b/plugins/inputmacro/inputmacro_persist.lua index 9c9e9322eed..b66d3c85c5c 100644 --- a/plugins/inputmacro/inputmacro_persist.lua +++ b/plugins/inputmacro/inputmacro_persist.lua @@ -104,7 +104,7 @@ function lib:load_settings() local settings = json.parse(file:read('a')) file:close() if not settings then - emu.print_error(string.format('Error loading input macros: error parsing file "%s" as JSON\n', filename)) + emu.print_error(string.format('Error loading input macros: error parsing file "%s" as JSON', filename)) return { } end @@ -124,7 +124,7 @@ function lib:save_settings(macros) if not stat then lfs.mkdir(path) elseif stat.mode ~= 'directory' then - emu.print_error(string.format('Error saving input macros: "%s" is not a directory\n', path)) + emu.print_error(string.format('Error saving input macros: "%s" is not a directory', path)) return end filename = path .. settings_filename() @@ -139,7 +139,7 @@ function lib:save_settings(macros) local text = json.stringify(settings, { indent = true }) local file = io.open(filename, 'w') if not file then - emu.print_error(string.format('Error saving input macros: error opening file "%s" for writing\n', filename)) + emu.print_error(string.format('Error saving input macros: error opening file "%s" for writing', filename)) return end file:write(text) |