From d636f1b008fa1dfc665b9eff2764002202631e13 Mon Sep 17 00:00:00 2001 From: garret Date: Fri, 17 Jun 2022 22:45:44 +0100 Subject: nuke old and bad config stuff This reverts commit 52f3a086f2ad7a3bbc9b8f8225a99e9e99120613. It also manually bandages over the places where it was ripped out. it was never a good idea in the first place --- macros/garret.chapters.lua | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'macros/garret.chapters.lua') diff --git a/macros/garret.chapters.lua b/macros/garret.chapters.lua index 826ca93..bcb78b9 100644 --- a/macros/garret.chapters.lua +++ b/macros/garret.chapters.lua @@ -5,24 +5,16 @@ script_version = "2.1.0" script_namespace = "garret.chapters" local haveDepCtrl, DependencyControl, depctrl = pcall(require, "l0.DependencyControl") -local simpleconf, config_dir if haveDepCtrl then depctrl = DependencyControl { --feed="TODO", - { - {"garret.simpleconf", url="https://github.com/garret1317/aegisub-scripts",} - --feed="TODO"}, - } } - simpleconf = depctrl:requireModules() - config_dir = depctrl.configDir -else - simpleconf = require 'garret.simpleconf' - config_dir = "?user/config" end -local config = simpleconf.get_config(aegisub.decode_path(config_dir.."/"..script_namespace..".conf"), {language = "eng", language_ietf = "en"}) +--local config = simpleconf.get_config(aegisub.decode_path(config_dir.."/"..script_namespace..".conf"), {language = "eng", language_ietf = "en"}) +local config = {language = "eng", language_ietf = "en"} + function ms_to_human(start) -- From Significance local timecode=math.floor(start/1000) @@ -62,7 +54,6 @@ function get_user_path(default_dir) end function main(sub) - aegisub.log(config_dir) local times = {} local names = {} for i=1,#sub do -- cgit v1.2.3-70-g09d2