1
0
mirror of https://github.com/metrostroi-repo/MetrostroiAddon.git synced 2026-05-02 00:42:29 +00:00

Added Win64 & Linux, Linux64

This commit is contained in:
CrIcKeT
2021-11-28 14:58:57 +03:00
parent cf96392021
commit fe07119585

View File

@@ -214,7 +214,26 @@ typedef struct {
} thread_msg;
thread_msg ThreadRecvMessage(void* p);
]]
local TS = ffi.load("gmsv_turbostroi_win32")
local OSName = "gmsv_turbostroi_"
if jis.os == "Windows" then
OSName = OSName.."win"
if jit.arch == "x86"
OSName = OSName.."86"
else
OSName = OSName.."64"
end
elseif jit.os == "Linux" then
OSName = OSName.."linux"
if jit.arch == "x86"
OSName = OSName.."86"
else
OSName = OSName.."64"
end
end
local TS = ffi.load(OSName)
Metrostroi = {}
local dataCache = {wires = {},wiresW = {},wiresL = {}}