feat(state): auto-save

This commit is contained in:
2026-08-29 12:00:50 +02:00
parent 9d300a69c1
commit 80add2ec67
7 changed files with 46 additions and 10 deletions
+4 -2
View File
@@ -109,10 +109,12 @@ void file_dump(const char *path, const char *content) {
fclose(file_pointer);
}
void file_write(const char *path, const StringArray *lines) {
void file_write(const char *path, const StringArray *lines, const bool log) {
FILE *file_pointer;
log_info("Writing %s...", path);
if (log) {
log_info("Writing %s...", path);
}
// open file
file_pointer = fopen(path, "w");