Skip to content

Commit b89cf68

Browse files
author
eritiro
committed
Add dependency check and remove unnecesary dependencies from the documentation
1 parent 97371e4 commit b89cf68

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ A lightweight **ReaScript + ReaImGui** tool that turns REAPER into a pattern
3737

3838
1. **Dependencies**
3939
* REAPER 7+ (tested on v7.39)
40-
* [SWS Extension](https://www.sws-extension.org/)
41-
* [js_ReaScriptAPI](https://forum.cockos.com/showthread.php?t=212174)
4240
* [ReaImGui ≥ 0.9.3.3](https://github.com/cfillion/reaimgui)
4341

4442

brute-seq.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ local reaper = reaper
3535
script_path = debug.getinfo(1, "S").source:match [[^@?(.*[\/])[^\/]-$]]
3636
local modules_path = script_path .. 'Modules/'
3737

38+
-- check dependencies
39+
40+
if not reaper.APIExists('ImGui_GetVersion') then
41+
local text = 'This script requires the ReaImGui extension to run. You can install it through ReaPack.'
42+
reaper.ShowMessageBox(text, 'Error - Missing Dependency', 0)
43+
return
44+
end
45+
46+
3847
-- requires script_path
3948
dofile(script_path .. 'Modules/GUI.lua')
4049
-- requires time_resolution

0 commit comments

Comments
 (0)