aboutsummaryrefslogtreecommitdiffstats
path: root/src/control.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/control.zig')
-rw-r--r--src/control.zig7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/control.zig b/src/control.zig
index 053f985..9810645 100644
--- a/src/control.zig
+++ b/src/control.zig
@@ -110,6 +110,8 @@ pub const ControlServer = struct {
progress: std.Progress.Node,
allocator: std.mem.Allocator,
+ dirty: bool,
+
pub fn init(
allocator: std.mem.Allocator,
progress: std.Progress.Node,
@@ -127,6 +129,8 @@ pub const ControlServer = struct {
.constants = constants,
.progress = progress,
.allocator = allocator,
+
+ .dirty = false,
};
self.server = c.lo_server_new_from_url(config.osc.ptr, handle_error);
@@ -221,7 +225,8 @@ pub const ControlServer = struct {
const code: [*:0]const u8 = @ptrCast(&argv[0].*.s);
try self.cache.shader.loadString(std.mem.span(code));
try self.cache.refresh();
- std.debug.print("reloaded\n", .{});
+ self.dirty = true;
+
return true;
}