zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit 9cf41bba97f64f23b2539f8bbc4d1f75d3268d56
parent 8feebf235c304e7b4a3a97571b886ff36d2cafb9
Author: paulnasca <paulnasca>
Date:   Sun, 22 Aug 2004 08:08:04 +0000

*** empty log message ***

Diffstat:
MChangeLog | 2++
Msrc/Params/PresetsStore.C | 7++++---
Msrc/Params/PresetsStore.h | 2++
3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -697,5 +697,7 @@ 19 Aug 2004 - Corectata o mica eroare la XMLwrapper care facea ca sa se salveze fortat toti parametrii (chiar si cei nefolositi) - Adaugata partea de salvare/incarcare a listei directoarelor unde se afla presetarile 21 Aug 2004 - Am lucrat putin la salvare/incarcare a listei dir. cu presetari +22 Aug 2004 - Corectata o eroare de compilare + \ No newline at end of file diff --git a/src/Params/PresetsStore.C b/src/Params/PresetsStore.C @@ -23,6 +23,7 @@ #include <string.h> #include "PresetsStore.h" +#include "../Misc/Util.h" PresetsStore presetsstore; @@ -65,11 +66,11 @@ bool PresetsStore::checkclipboardtype(char *type){ //Presets management void PresetsStore::clearpresets(){ for (int i=0;i<MAX_PRESETS;i++){ - if (preset[i].file!=NULL) { + if (presets[i].file!=NULL) { delete(presets[i].file); presets[i].file=NULL; }; - if (preset[i].name!=NULL) { + if (presets[i].name!=NULL) { delete(presets[i].name); presets[i].name=NULL; }; @@ -80,7 +81,7 @@ void PresetsStore::clearpresets(){ void PresetsStore::rescanforpresets(char *type){ clearpresets(); int presetk=0; - for (int i=0;i<MAX_PRESETS_DIR;i++){ + for (int i=0;i<MAX_BANK_ROOT_DIRS;i++){ if (config.cfg.presetsDirList[i]==NULL) continue; //de continuat aici }; diff --git a/src/Params/PresetsStore.h b/src/Params/PresetsStore.h @@ -21,6 +21,8 @@ */ #include "../Misc/XMLwrapper.h" +#include "../Misc/Config.h" + #define MAX_PRESETTYPE_SIZE 30 #define MAX_PRESETS 1000