diff options
Diffstat (limited to '')
-rw-r--r-- | src/main.zig | 5 |
1 files changed, 5 insertions, 0 deletions
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(); } |