1
0
mirror of https://github.com/Earu/EasyChat.git synced 2025-03-04 03:13:20 -05:00

improve fallback module detection

This commit is contained in:
Ryan 2023-09-27 17:38:51 +02:00
parent 8a46cc363d
commit becbf59de5

View File

@ -9,7 +9,8 @@ if SERVER then
return util.IsBinaryModuleInstalled(name)
end
return #file.Find("lua/bin/*" .. name:PatternSafe() .. "*", "MOD") > 0
local arch = system.IsWindows() and "win" or (system.IsOSX() and "osx" or "linux")
return #file.Find("lua/bin/gmsv_" .. name:PatternSafe() .. "_" .. arch .. "*.dll", "MOD") > 0
end
local has_slog = has_bin("slog")