From 95255580b1293dc7ff69dee8f62e4afe4ea41b1a Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Sun, 22 Feb 2026 02:08:51 +0545 Subject: [PATCH] feat(src/common): add write_runtime_system_volume_following_file The new function writes a runtime state file to track the system volume following setting. - New Features - Added `write_runtime_system_volume_following_file` to persist system volume following state. --- src/common/utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/common/utils.c b/src/common/utils.c index a4d73d1..5913f39 100644 --- a/src/common/utils.c +++ b/src/common/utils.c @@ -125,6 +125,11 @@ int write_runtime_mouse_enabled_file(int enabled) { return 1; } +int write_runtime_system_volume_following_file(int enabled) { + write_runtime_state_file("sysvol-following", enabled); + return 1; +} + void int_to_str(char *buffer, size_t size, int value) { safe_snprintf_wrapper(buffer, size, "%d", value);