feat(state): save state on exiting

This commit is contained in:
2025-11-02 13:37:34 +01:00
parent 1835050079
commit 09e04720f1
9 changed files with 113 additions and 7 deletions
+7
View File
@@ -25,6 +25,11 @@ typedef ARRAY(StringArray, char *);
typedef ARRAY(Vec3Array, vec3);
typedef ARRAY(GLuintArray, GLuint);
typedef struct ConstStringArray {
char values[ARRAY_SIZE][1000];
unsigned int length;
} ConstStringArray;
typedef struct Parameters {
bool hot_reload;
bool output;
@@ -33,6 +38,8 @@ typedef struct Parameters {
unsigned int monitor_screen;
char *frag_path;
char *config_path;
char *state_file;
bool empty_state;
unsigned int internal_size;
unsigned int video_size;
float base_tempo;