Skip to content

Commit 7067ae2

Browse files
authored
Release Live keys scripts v1.0.0-1 (ReaTeam#765)
Fix broken include path due to packaging changes
1 parent f994153 commit 7067ae2

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

FX/larryseyer_Live keys scripts.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
-- @description Live keys scripts
22
-- @author Larry Seyer
3-
-- @version 1.0
3+
-- @version 1.0.0-1
4+
-- @changelog Fix broken include path due to packaging changes
45
-- @provides
56
-- [nomain] .
67
-- [main] larryseyer_Live keys scripts/action.lua > larryseyer_Live keys scripts - Track 1.lua

FX/larryseyer_Live keys scripts/action.lua

+2-11
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,7 @@
77

88
local script_name = ({reaper.get_action_context()})[2]:match("([^/\\_]+)%.lua$")
99
local this_live_track = tonumber(script_name:match("Track (%d+)")) or -1
10+
local path = debug.getinfo(1, 'S').source:match('^@(.+)[\\//]')
1011

11-
function get_script_path()
12-
if reaper.GetOS() == "Win32" or reaper.GetOS() == "Win64" then
13-
return debug.getinfo(1,'S').source:match("(.*".."\\"..")"):sub(2) .. "\\" -- remove "@"
14-
end
15-
return debug.getinfo(1,'S').source:match("(.*".."/"..")"):sub(2) .. "/"
16-
end
17-
18-
local path = string.format('%s/../larryseyer_Live keys scripts.lua', get_script_path())
19-
20-
dofile(path)
21-
12+
dofile(string.format('%s/larryseyer_Live keys scripts.lua', path))
2213
Live_Inst_Main_Logic(this_live_track)

0 commit comments

Comments
 (0)