Skip to content

Commit

Permalink
version warning
Browse files Browse the repository at this point in the history
  • Loading branch information
James Bradbury committed Jul 1, 2022
1 parent 0714efa commit a3e75ad
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/reacoma.lua
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ if app_version < 609 then
end

-- Check that ReaImGui exists
if not reaper.ImGui_GetVersion then
local IMGUI_VERSION, IMGUI_VERSION_NUM, REAIMGUI_VERSION = reaper.ImGui_GetVersion()
local version_satisfied = IMGUI_VERSION_NUM >= '18800'
if not reaper.ImGui_GetVersion or not version_satisfied then
local rv = reaper.ShowMessageBox(
"ReaImGui is a dependency of ReaCoMa version 2.0 and needs to be installed. \n\nReaCoMa can not install it for you, but it is simple to install. I suggest managing its installation through ReaPack. If you click OK, you will be taken to the ReaPack website which has instructions for installation.",
"ReaImGui 0.7 or greater is a dependency of ReaCoMa version 2.0 and needs to be installed. \n\nReaCoMa can not install it for you, but it is simple to install. I suggest managing its installation through ReaPack. If you click OK, you will be taken to the ReaPack website which has instructions for installation.",
"Dependency Missing", 1
)
if rv == 1 then
Expand Down

0 comments on commit a3e75ad

Please sign in to comment.