fix merge breaking stuff

This commit is contained in:
Squibid 2025-10-24 23:53:56 -04:00
parent 3cf05f2d9a
commit f636efdfe9
Signed by: squibid
GPG key ID: BECE5684D3C4005D
4 changed files with 54 additions and 37 deletions

View file

@ -7,6 +7,7 @@ const zlua = @import("zlua");
const Bridge = @import("bridge.zig");
const Fs = @import("fs.zig");
const Input = @import("input.zig");
const Api = @import("api.zig");
const gpa = std.heap.c_allocator;
@ -63,6 +64,11 @@ pub fn init(self: *Lua) !void {
self.state.newLib(input_funcs);
self.state.setField(-2, "input");
}
{
const api_funcs = zlua.fnRegsFromType(Api);
self.state.newLib(api_funcs);
self.state.setField(-2, "api");
}
}
loadRuntimeDir(self) catch |err| {