From 70b07249191572641dfcce07ad482bc0f39b098a Mon Sep 17 00:00:00 2001 From: James Bradbury Date: Mon, 28 Jun 2021 15:23:52 +0100 Subject: [PATCH 1/2] cleanup scripts i dont want to maintain --- UtilityScripts/EditPath.lua | 5 ----- UtilityScripts/WipeStates.lua | 12 ------------ UtilityScripts/{CleanPath.lua => clean_path.lua} | 0 3 files changed, 17 deletions(-) delete mode 100644 UtilityScripts/EditPath.lua delete mode 100644 UtilityScripts/WipeStates.lua rename UtilityScripts/{CleanPath.lua => clean_path.lua} (100%) diff --git a/UtilityScripts/EditPath.lua b/UtilityScripts/EditPath.lua deleted file mode 100644 index 0ad5c92..0000000 --- a/UtilityScripts/EditPath.lua +++ /dev/null @@ -1,5 +0,0 @@ -local info = debug.getinfo(1,'S'); -script_path = info.source:match[[^@?(.*[\/])[^\/]-$]] -loadfile(script_path .. "../lib/reacoma.lua")() - -reacoma.paths.set_reacoma_path() diff --git a/UtilityScripts/WipeStates.lua b/UtilityScripts/WipeStates.lua deleted file mode 100644 index e36fa32..0000000 --- a/UtilityScripts/WipeStates.lua +++ /dev/null @@ -1,12 +0,0 @@ -local info = debug.getinfo(1,'S'); -local script_path = info.source:match[[^@?(.*[\/])[^\/]-$]] --- loadfile(script_path .. "../lib/reacoma.lua")() - --- -- A script for getting rid of all FluCoMa related variables stored in the state table -- --- for k, v in pairs(reacoma.params.archetype) do --- for i, j in pairs(v) do --- reaper.DeleteExtState(v.name, i, true) --- end --- end - -reaper.DeleteExtState("reacoma", "version_warned", true) \ No newline at end of file diff --git a/UtilityScripts/CleanPath.lua b/UtilityScripts/clean_path.lua similarity index 100% rename from UtilityScripts/CleanPath.lua rename to UtilityScripts/clean_path.lua From 0ed750b2623d8062b898227f5ed1da346e1fbfc1 Mon Sep 17 00:00:00 2001 From: James Bradbury Date: Mon, 28 Jun 2021 15:28:03 +0100 Subject: [PATCH 2/2] remove all version checking, this isn't a problem anymore --- lib/reacoma.lua | 27 +-------------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/lib/reacoma.lua b/lib/reacoma.lua index cdd4964..104ba7f 100644 --- a/lib/reacoma.lua +++ b/lib/reacoma.lua @@ -58,29 +58,4 @@ if reacoma.paths.sanity_check() == false then end -- Store the path in a known place -reacoma.settings.path = reacoma.paths.get_reacoma_path() - --- Check for versions -local get_version = reacoma.utils.wrap_quotes( - reacoma.settings.path .. "/fluid-noveltyslice" -) .. " -v" - --- Get the current version by capturing the output of the -v flag -local installed_tools_version = reacoma.utils.capture(get_version) - --- Find out if the dependency string matches the version of the cli --- From this we can deduce a sort of minimum version -local valid_version = installed_tools_version:find(reacoma.dep) - --- Check that the version of installed tools matches the marked version in the code -if not reacoma.bypass_version then - if valid_version < 1 then - local retval = reaper.ShowMessageBox( - "The version of ReaCoMa is not tested with the currently installed command-line tools version and may fail or produce undefined behaviour. \n\nReaCoMa can take you to the download page by clicking OK, or you can move on by clicking Cancel. Alternatively, to disable this message forever change reacoma.bypass_version in config.lua to true.", - "Version Incompatability", 1) - if retval == 1 then - reacoma.utils.open_browser("https://www.flucoma.org/download/") - end - reacoma.settings.fatal = false -- for now everything is fine, we dont need to test versions that thoroughly anymore - end -end +reacoma.settings.path = reacoma.paths.get_reacoma_path() \ No newline at end of file