feat(cmd): recovery files moved to [...]/sointu/recovery/

This commit is contained in:
2026-02-14 19:42:25 +02:00
parent b349474c4d
commit e66ff8be9f
3 changed files with 5 additions and 2 deletions
+3
View File
@@ -42,6 +42,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
did not, resulting it claiming errors in patches that worked once compiled.
### Changed
- Recovery files were moved to `os.UserConfigDir()/sointu/recovery/` instead of
`os.UserConfigDir()/sointu/` so that they don't pollute the main configuration
directory and so that it's easy to delete just the recovery files.
- Tracker model supports now enum-style values, which are integers that have a
name associated with them. These enums are used to display menus where you
select one of the options, for example in the MIDI menu to choose one of the
+1 -1
View File
@@ -42,7 +42,7 @@ func main() {
}
recoveryFile := ""
if configDir, err := os.UserConfigDir(); err == nil {
recoveryFile = filepath.Join(configDir, "Sointu", "sointu-track-recovery")
recoveryFile = filepath.Join(configDir, "sointu", "recovery", "sointu-track-recovery.json")
}
broker := tracker.NewBroker()
midiContext := cmd.NewMidiContext(broker)
+1 -1
View File
@@ -43,7 +43,7 @@ func init() {
if configDir, err := os.UserConfigDir(); err == nil {
randBytes := make([]byte, 16)
rand.Read(randBytes)
recoveryFile = filepath.Join(configDir, "sointu", "sointu-vsti-recovery-"+hex.EncodeToString(randBytes))
recoveryFile = filepath.Join(configDir, "sointu", "recovery", "sointu-vsti-recovery-"+hex.EncodeToString(randBytes)+".json")
}
broker := tracker.NewBroker()
model := tracker.NewModel(broker, cmd.Synthers, cmd.NewMidiContext(broker), recoveryFile)