Skip to content

Commit

Permalink
Enhancing checks
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTalagan committed Nov 26, 2024
1 parent 9c4e989 commit e6eeb7c
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 7 deletions.
2 changes: 1 addition & 1 deletion View/talagan_Docking tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
You can copy / paste the "... (500).lua" action files and modify their name to put a custom height instead of 500.
Thanks to @edgemeal for the technical advice and windows support !
Thanks to @edgemeal for the technical advice / windows support and @X-raym for the code review!
--]]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

package.path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] .."?.lua;".. package.path

local docking_lib = require "talagan_Docking tools/docking_lib"
local ok, docking_lib = pcall(require, "talagan_Docking tools/docking_lib")
if not ok then
reaper.MB("This script is not well installed. Please install 'Docking tools' with Reapack.","Ouch!",0)
return
end

if not docking_lib.CheckDependencies() then return end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

package.path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] .."?.lua;".. package.path

local docking_lib = require "talagan_Docking tools/docking_lib"
local ok, docking_lib = pcall(require, "talagan_Docking tools/docking_lib")
if not ok then
reaper.MB("This script is not well installed. Please install 'Docking tools' with Reapack.","Ouch!",0)
return
end

if not docking_lib.CheckDependencies() then return end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

package.path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] .."?.lua;".. package.path

local docking_lib = require "talagan_Docking tools/docking_lib"
local ok, docking_lib = pcall(require, "talagan_Docking tools/docking_lib")
if not ok then
reaper.MB("This script is not well installed. Please install 'Docking tools' with Reapack.","Ouch!",0)
return
end

if not docking_lib.CheckDependencies() then return end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

package.path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] .."?.lua;".. package.path

local docking_lib = require "talagan_Docking tools/docking_lib"
local ok, docking_lib = pcall(require, "talagan_Docking tools/docking_lib")
if not ok then
reaper.MB("This script is not well installed. Please install 'Docking tools' with Reapack.","Ouch!",0)
return
end

if not docking_lib.CheckDependencies() then return end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

package.path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] .."?.lua;".. package.path

local docking_lib = require "talagan_Docking tools/docking_lib"
local ok, docking_lib = pcall(require, "talagan_Docking tools/docking_lib")
if not ok then
reaper.MB("This script is not well installed. Please install 'Docking tools' with Reapack.","Ouch!",0)
return
end

if not docking_lib.CheckDependencies() then return end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@

package.path = debug.getinfo(1,"S").source:match[[^@?(.*[\/])[^\/]-$]] .."?.lua;".. package.path

local docking_lib = require "talagan_Docking tools/docking_lib"
local ok, docking_lib = pcall(require, "talagan_Docking tools/docking_lib")
if not ok then
reaper.MB("This script is not well installed. Please install 'Docking tools' with Reapack.","Ouch!",0)
return
end

if not docking_lib.CheckDependencies() then return end

Expand Down

0 comments on commit e6eeb7c

Please sign in to comment.