From 959464c87d919bb90fd1baf42d5f6ed679fef2e5 Mon Sep 17 00:00:00 2001 From: arsamus Date: Thu, 2 Jun 2022 14:54:38 -0300 Subject: [PATCH] Update performanceconfig.cpp --- src/performanceconfig.cpp | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/performanceconfig.cpp b/src/performanceconfig.cpp index a21a7ca..290e305 100644 --- a/src/performanceconfig.cpp +++ b/src/performanceconfig.cpp @@ -579,29 +579,15 @@ void CPerformanceConfig::SetActualPerformanceID(unsigned nID) nActualPerformance = nID; } -/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% have to be deleted -unsigned CPerformanceConfig::GetMenuSelectedPerformanceID() -{ - return nMenuSelectedPerformance; -} - -void CPerformanceConfig::SetMenuSelectedPerformanceID(unsigned nID) -{ - nMenuSelectedPerformance = nID; -} -*/ -//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% have to be deleted - bool CPerformanceConfig::GetInternalFolderOk() { return nInternalFolderOk; } -bool CPerformanceConfig::CreateNewPerformanceFile(std::string sPerformanceName) +bool CPerformanceConfig::CreateNewPerformanceFile(void) { - // sPerformanceName for future improvements when user can enter a name via UI - sPerformanceName = NewPerformanceName; //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% - NewPerformanceName=""; //%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + std::string sPerformanceName = NewPerformanceName; + NewPerformanceName=""; nActualPerformance=nLastPerformance; std::string nFileName; std::string nPath; @@ -722,7 +708,6 @@ void CPerformanceConfig::SetNewPerformance (unsigned nID) new (&m_Properties) CPropertiesFatFsFile(FileN.c_str(), m_pFileSystem); } -//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%55 std::string CPerformanceConfig::GetNewPerformanceDefaultName(void) {