feat(state): load state on start

This commit is contained in:
2025-11-02 15:04:36 +01:00
parent 09e04720f1
commit b8bc021e69
9 changed files with 75 additions and 26 deletions
+4 -2
View File
@@ -59,7 +59,7 @@ static void init_context(Parameters params, unsigned int in_count) {
unsigned int i;
state_init(context, state_config, params.demo, params.base_tempo,
params.state_file, params.empty_state);
params.state_file, params.load_state);
context->monitor = params.monitor;
@@ -315,7 +315,9 @@ void forge_run(Parameters params) {
context->stop = true;
state_save(context, state_config, params.state_file);
if (params.save_state) {
state_save(context, state_config, params.state_file);
}
shaders_free(program);