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:
@@ -12,7 +12,26 @@ end
|
|||||||
print("[!] RailNetwork initialized!")
|
print("[!] RailNetwork initialized!")
|
||||||
-- NEW API
|
-- NEW API
|
||||||
local ffi = require("ffi")
|
local ffi = require("ffi")
|
||||||
local C = 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 C = ffi.load(OSName)
|
||||||
|
|
||||||
ffi.cdef[[
|
ffi.cdef[[
|
||||||
bool RnThreadSendMessage(int ent_id, int id, const char* name, double value);
|
bool RnThreadSendMessage(int ent_id, int id, const char* name, double value);
|
||||||
]]
|
]]
|
||||||
|
|||||||
Reference in New Issue
Block a user