periwinkle/mist
3
17
Fork
You've already forked mist
1

Dumping and restoring state #19

Merged
periwinkle merged 30 commits from state_dump into master 2022年08月11日 06:40:22 +02:00

Feature requested by runners of longer categories. This allows you to dump the state, close the program, and then reopen it and restore the state you dumped earlier, to come back to the same place in the run where you were before.

Feature requested by runners of longer categories. This allows you to dump the state, close the program, and then reopen it and restore the state you dumped earlier, to come back to the same place in the run where you were before.
need the run field because without it, you lose some of
the information that has already been set in the Run before
the end. also added dialogs function to open a statedump filepath
and then moved the parsing of the state dump to an associated fn,
rather than just doing it in TimerState
have to calculate full time diffs for already-completed splits
rather than using the existing ones in run_diffs since they
are per-split.
this means i can use it for diffs also
also adds convert_color function for converting from
status to the associated color
previously bailed on any time value where val() was 0,
meaning that skipped times would be lost and anything after
a skipped time was also down the drain
i am not considering this a breaking change, as this is
really just a config issue, and the config doesn't care if it
is underspecified and replaces such fields with default.
replace statedump print with write to a file, add
dialog box for getting dump save path
have to use serde(default) on individual struct member types
as well as the whole thing if the members are structs, obnoxiously
enough.
idk why i did that before, it doesn't even make sense,
and it indeed breaks the renderer when this is restored
from a dump.
reorganized the input processing if chain a bit, so that
it only checks for dump/load/load run/load cfg if the timer is
not running.
previously was somehow using individual split times for
the current texture, instead of the total time. also added
the ability to regenerate the gold color of diffs that should
be gold
use the actual ones from the runstate instead of whatever happens to
randomly be the case when the dump is created
periwinkle deleted branch state_dump 2022年08月11日 06:40:22 +02:00
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
periwinkle/mist!19
Reference in a new issue
periwinkle/mist
No description provided.
Delete branch "state_dump"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?