feat(tracker): load presets from os.UserConfigDir()/sointu/presets/

This is related to #125, but is very crude way of implementing it.
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2024-02-20 20:17:59 +02:00
parent b70db4d394
commit edee3452f4
3 changed files with 29 additions and 4 deletions

View File

@ -61,7 +61,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", "sointu-vsti-recovery-"+hex.EncodeToString(randBytes))
}
model, player := tracker.NewModelPlayer(cmd.MainSynther, recoveryFile)
t := gioui.NewTracker(model)