jalovatt / Lokasenna_GUI

Lua scripts for Reaper
40 stars 11 forks source link

Issues with arm-macs, as GetOS returns a different string for arm-macs than other macs #6

Open mespotine opened 3 years ago

mespotine commented 3 years ago

In Core.lua

GUI.get_OS_fonts = function()

    local os = reaper.GetOS()
    if os:match("Win") then
        return GUI.OS_fonts.Windows
    elseif os:match("OSX") then
        return GUI.OS_fonts.OSX
    else
        return GUI.OS_fonts.Linux
    end

end

needs to be altered to check for "macOS-arm64" as well