feat(state): auto-save
This commit is contained in:
+4
-2
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user