diff options
author | Iurii Plugatariov <[email protected]> | 2024-07-05 18:47:38 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2024-07-05 18:47:38 +0200 |
commit | c7b32cd10370f512bad154d0282f78004ffa4c42 (patch) | |
tree | 3a863d28966469be4abbc965d9b2c18ffbbcae16 /src/main.zig | |
parent | 4bbbc55dc8061999048f0c2bdd9d36b412eb2647 (diff) | |
parent | 2e6e2c5bc415460a66517dd786091c63189b66dc (diff) | |
download | tinkerbunk-c7b32cd10370f512bad154d0282f78004ffa4c42.tar.gz |
Merge pull request #2 from makefunstuff/muzak
Muzak
Diffstat (limited to 'src/main.zig')
-rw-r--r-- | src/main.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main.zig b/src/main.zig index 5609376..1d8af9a 100644 --- a/src/main.zig +++ b/src/main.zig @@ -3,6 +3,11 @@ const ls = @import("ls.zig"); const socket_server = @import("socket-server.zig"); const sdl_window = @import("sdl-window.zig"); const brr = @import("brr.zig"); +const cbrr = @cImport({ + @cInclude("cbrr.h"); +}); + +extern fn brr_c(filepath: [*:0]const u8) void; const commands = [_]struct { name: []const u8, @@ -51,7 +56,7 @@ pub fn main() !void { if (args.len == 3) { if (std.mem.eql(u8, args[1], "brr")) { - try brr.brr(args[2]); + brr_c(args[2]); return; } } |