From 27688f323e794791f03834dcfc5224f20da94f26 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sat, 2 Dec 2023 20:55:59 +0100 Subject: [PATCH] Do not hardcode PERFORMANCE_DIR [ci skip] --- src/performanceconfig.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/performanceconfig.h b/src/performanceconfig.h index c151c7a..1bba90a 100644 --- a/src/performanceconfig.h +++ b/src/performanceconfig.h @@ -27,7 +27,6 @@ #include #include #define NUM_VOICE_PARAM 156 -#define PERFORMANCE_DIR "performance" #define NUM_PERFORMANCES 256 class CPerformanceConfig // Performance configuration @@ -40,6 +39,9 @@ public: bool Save (void); + const char *GetPerformanceDir (void) const; + void SetPerformanceDir (const char *pDir); + // TG# unsigned GetBankNumber (unsigned nTG) const; // 0 .. 127 unsigned GetVoiceNumber (unsigned nTG) const; // 0 .. 31 @@ -176,6 +178,8 @@ private: bool nInternalFolderOk=false; bool nExternalFolderOk=false; // for future USB implementation std::string NewPerformanceName=""; + + std::string m_PerformanceDir = "performance"; bool m_bCompressorEnable; bool m_bReverbEnable;