Skip to content

Commit baebb67

Browse files
committed
Fixed Quik version check
1 parent efcb657 commit baebb67

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Server.lua

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,15 @@ else
1111
scriptPath = utils.script_path()
1212
end
1313
local libDir
14-
if not getScriptPath or tonumber(string.match(getInfoParam("VERSION"), "%d+[.]%d+")) >= 8.5 then
14+
local quikVer
15+
if getScriptPath then
16+
quikVer = tonumber(string.match(getInfoParam("VERSION"), "(%d+)[.]")) * 100 +
17+
tonumber(string.match(getInfoParam("VERSION"), "%d+[.](%d+)[.]"))
18+
end
19+
20+
if not getScriptPath or quikVer >= 805 then
1521
libDir = "53"
16-
elseif tonumber(string.match(getInfoParam("VERSION"), "%d+[.]%d+")) >= 8 then
22+
elseif quikVer >= 800 then
1723
libDir = "51-x64"
1824
else
1925
libDir = "51-x86"

0 commit comments

Comments
 (0)