noita-mapcap/files/external.lua
2019-10-20 16:32:48 +02:00

19 lines
425 B
Lua

-- Copyright (c) 2019 David Vogel
--
-- This software is released under the MIT License.
-- https://opensource.org/licenses/MIT
local ffi = ffi or _G.ffi or require("ffi")
local status, caplib = pcall(ffi.load, "mods/noita-mapcap/bin/capture-b/capture")
if not status then
print("Error loading capture lib: " .. cap)
end
ffi.cdef [[
void Capture(int x, int y);
]]
function TriggerCapture(x, y)
caplib.Capture(x, y)
end