about summary refs log tree commit diff
path: root/src/main.zig
diff options
context:
space:
mode:
authormakefunstuff <[email protected]>2024-06-30 19:31:40 +0200
committermakefunstuff <[email protected]>2024-06-30 19:31:40 +0200
commit756dd2943a4082e9037c99f0cc0567f9d6cdc59d (patch)
tree7054ffd9810642c32a6397070be2cea5ad7ea3e6 /src/main.zig
parent38ac26d900f63251529c318106b798769d96e137 (diff)
downloadtinkerbunk-756dd2943a4082e9037c99f0cc0567f9d6cdc59d.tar.gz
broken sdl sdl-window
Diffstat (limited to '')
-rw-r--r--src/main.zig5
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();
 }