Remove DEFAULT_PERFORMANCE_BANK_NAME

No hardcoding of the name of the first performance directory
pull/895/head
probonopd 2 weeks ago
parent 63293f6f35
commit f9e170dfcd
  1. 10
      src/performanceconfig.cpp

@ -33,7 +33,6 @@ LOGMODULE ("Performance");
#define PERFORMANCE_DIR "performance" #define PERFORMANCE_DIR "performance"
#define DEFAULT_PERFORMANCE_FILENAME "performance.ini" #define DEFAULT_PERFORMANCE_FILENAME "performance.ini"
#define DEFAULT_PERFORMANCE_NAME "Default" #define DEFAULT_PERFORMANCE_NAME "Default"
#define DEFAULT_PERFORMANCE_BANK_NAME "Default"
CPerformanceConfig::CPerformanceConfig (FATFS *pFileSystem) CPerformanceConfig::CPerformanceConfig (FATFS *pFileSystem)
: m_Properties (DEFAULT_PERFORMANCE_FILENAME, pFileSystem) : m_Properties (DEFAULT_PERFORMANCE_FILENAME, pFileSystem)
@ -1168,10 +1167,6 @@ bool CPerformanceConfig::ListPerformanceBanks()
} }
unsigned nNumBanks = 0; unsigned nNumBanks = 0;
// Add in the default performance directory as the first bank
m_PerformanceBankName[0] = DEFAULT_PERFORMANCE_BANK_NAME;
nNumBanks = 1;
m_nLastPerformanceBank = 0; m_nLastPerformanceBank = 0;
// List directories with names in format 01_Perf Bank Name // List directories with names in format 01_Perf Bank Name
@ -1277,10 +1272,7 @@ std::string CPerformanceConfig::GetPerformanceBankName(unsigned nBankID)
{ {
return m_PerformanceBankName[nBankID]; return m_PerformanceBankName[nBankID];
} }
else return "";
{
return DEFAULT_PERFORMANCE_BANK_NAME;
}
} }
std::string CPerformanceConfig::AddPerformanceBankDirName(unsigned nBankID) std::string CPerformanceConfig::AddPerformanceBankDirName(unsigned nBankID)

Loading…
Cancel
Save