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.
This commit is contained in:
1 file changed
+5
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user