diff options
Diffstat (limited to '')
-rw-r--r-- | eatit-cfg.lua | 3 | ||||
-rw-r--r-- | eatit.lua | 15 |
2 files changed, 0 insertions, 18 deletions
diff --git a/eatit-cfg.lua b/eatit-cfg.lua index dcdc95e..750e33a 100644 --- a/eatit-cfg.lua +++ b/eatit-cfg.lua @@ -22,9 +22,6 @@ plugins = { -- the plugins you want to load file = 'eatit.lua', -- required, specifies the desired file dir = 'scripts', -- optional, sets the dest dir branch = 'master', -- optional, sets the desired branch - cfg = function() -- optional, runs code on mpv startup - print('this is an example') - end }, } @@ -174,20 +174,6 @@ local function initupdate() closelog() end --- run any user defined configs at startup --- NOTE: This is kinda useless and might be removed if there is no way to make --- it run in the desired plugin's thread -local function runopts() - openlog() - for i = 1, tablelength(plugins) do - if plugins[i]['cfg'] then - logwrite('Running ' .. plugins[i]['file'] .. '\'s config') - plugins[i]['cfg']() - end - end - closelog() -end - -- remove logfile on startup if opts.logging.log then openlog() @@ -195,5 +181,4 @@ if opts.logging.log then closelog() end -runopts() mp.add_key_binding(opts.bind, 'UpdatePlugins', initupdate) |