win32 standalone gui

This commit is contained in:
Jonathan Marler 2024-07-20 16:05:00 -06:00 committed by CJ van den Berg
parent 1ad6b8db3d
commit 1a595871dd
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
10 changed files with 1773 additions and 1 deletions

View file

@ -1,4 +1,5 @@
const std = @import("std");
const build_options = @import("build_options");
const tp = @import("thespian");
const cbor = @import("cbor");
const log = @import("log");
@ -256,6 +257,13 @@ fn receive_safe(self: *Self, from: tp.pid_ref, m: tp.message) !void {
return;
}
if (build_options.gui) {
if (try m.match(.{ "GUI", tp.more })) {
try self.rdr.process_gui_event(m);
return;
}
}
if (self.message_filters.filter(from, m) catch |e| return self.logger.err("filter", e))
return;