Skip to content

Commit

Permalink
Fixed Quik version check
Browse files Browse the repository at this point in the history
  • Loading branch information
avently committed Mar 16, 2021
1 parent efcb657 commit baebb67
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@ else
scriptPath = utils.script_path()
end
local libDir
if not getScriptPath or tonumber(string.match(getInfoParam("VERSION"), "%d+[.]%d+")) >= 8.5 then
local quikVer
if getScriptPath then
quikVer = tonumber(string.match(getInfoParam("VERSION"), "(%d+)[.]")) * 100 +
tonumber(string.match(getInfoParam("VERSION"), "%d+[.](%d+)[.]"))
end

if not getScriptPath or quikVer >= 805 then
libDir = "53"
elseif tonumber(string.match(getInfoParam("VERSION"), "%d+[.]%d+")) >= 8 then
elseif quikVer >= 800 then
libDir = "51-x64"
else
libDir = "51-x86"
Expand Down

0 comments on commit baebb67

Please sign in to comment.