mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-16 05:03:18 -05:00
feat(cmd): recovery files moved to [...]/sointu/recovery/
This commit is contained in:
parent
b349474c4d
commit
e66ff8be9f
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user