From 756dd2943a4082e9037c99f0cc0567f9d6cdc59d Mon Sep 17 00:00:00 2001 From: makefunstuff Date: Sun, 30 Jun 2024 20:31:40 +0300 Subject: broken sdl sdl-window --- src/main.zig | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/main.zig') diff --git a/src/main.zig b/src/main.zig index e5e4099..d712153 100644 --- a/src/main.zig +++ b/src/main.zig @@ -1,6 +1,7 @@ const std = @import("std"); const ls = @import("ls.zig"); const socket_server = @import("socket-server.zig"); +const sdl_window = @import("sdl-window.zig"); pub fn main() !void { var gpa = std.heap.GeneralPurposeAllocator(.{}){}; @@ -23,6 +24,10 @@ pub fn main() !void { try socket_server.start_server(); } + if (args.len == 2 and std.mem.eql(u8, args[1], "window")) { + try sdl_window.present_sdl_window(); + } + std.debug.print("Unknown command. Use 'help' for usage information.\n", .{}); print_help(); } -- cgit 1.4.1-2-gfad0