mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-22 21:17:33 +00:00
19 lines
425 B
Lua
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
|