feat(state): save state on exiting
This commit is contained in:
+4
-1
@@ -58,7 +58,8 @@ static void compute_fps() {
|
||||
static void init_context(Parameters params, unsigned int in_count) {
|
||||
unsigned int i;
|
||||
|
||||
state_init(context, state_config, params.demo, params.base_tempo);
|
||||
state_init(context, state_config, params.demo, params.base_tempo,
|
||||
params.state_file, params.empty_state);
|
||||
|
||||
context->monitor = params.monitor;
|
||||
|
||||
@@ -314,6 +315,8 @@ void forge_run(Parameters params) {
|
||||
|
||||
context->stop = true;
|
||||
|
||||
state_save(context, state_config, params.state_file);
|
||||
|
||||
shaders_free(program);
|
||||
|
||||
if (window_output != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user