Do not hardcode PERFORMANCE_DIR

[ci skip]
switch_perf_dir
probonopd 12 months ago committed by GitHub
parent 9a0404aed7
commit 27688f323e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      src/performanceconfig.h

@ -27,7 +27,6 @@
#include <fatfs/ff.h> #include <fatfs/ff.h>
#include <Properties/propertiesfatfsfile.h> #include <Properties/propertiesfatfsfile.h>
#define NUM_VOICE_PARAM 156 #define NUM_VOICE_PARAM 156
#define PERFORMANCE_DIR "performance"
#define NUM_PERFORMANCES 256 #define NUM_PERFORMANCES 256
class CPerformanceConfig // Performance configuration class CPerformanceConfig // Performance configuration
@ -40,6 +39,9 @@ public:
bool Save (void); bool Save (void);
const char *GetPerformanceDir (void) const;
void SetPerformanceDir (const char *pDir);
// TG# // TG#
unsigned GetBankNumber (unsigned nTG) const; // 0 .. 127 unsigned GetBankNumber (unsigned nTG) const; // 0 .. 127
unsigned GetVoiceNumber (unsigned nTG) const; // 0 .. 31 unsigned GetVoiceNumber (unsigned nTG) const; // 0 .. 31
@ -177,6 +179,8 @@ private:
bool nExternalFolderOk=false; // for future USB implementation bool nExternalFolderOk=false; // for future USB implementation
std::string NewPerformanceName=""; std::string NewPerformanceName="";
std::string m_PerformanceDir = "performance";
bool m_bCompressorEnable; bool m_bCompressorEnable;
bool m_bReverbEnable; bool m_bReverbEnable;
unsigned m_nReverbSize; unsigned m_nReverbSize;

Loading…
Cancel
Save