From c2deb77a43349558fbbafa591ff40eaa08334b8c Mon Sep 17 00:00:00 2001 From: donluca <51792528+donluca@users.noreply.github.com> Date: Sat, 25 Feb 2023 17:10:15 +0000 Subject: [PATCH] Fixes --- src/config.cpp | 5 ++--- src/config.h | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/config.cpp b/src/config.cpp index 3749a31..b2be32e 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -122,7 +122,6 @@ void CConfig::Load (void) m_bMIDIDumpEnabled = m_Properties.GetNumber ("MIDIDumpEnabled", 0) != 0; m_bProfileEnabled = m_Properties.GetNumber ("ProfileEnabled", 0) != 0; m_bPerformanceSelectToLoad = m_Properties.GetNumber ("PerformanceSelectToLoad", 1) != 0; - m_EngineType = m_Properties.GetString ("EngineType", "MSFA"); } const char *CConfig::GetSoundDevice (void) const @@ -390,7 +389,7 @@ bool CConfig::GetPerformanceSelectToLoad (void) const return m_bPerformanceSelectToLoad; } -const char *CConfig::GetEngineType (void) const +uint8_t CConfig::GetEngineType (void) const { - return m_EngineType.c_str(); + return m_EngineType; } diff --git a/src/config.h b/src/config.h index 434b37e..9e27fb9 100644 --- a/src/config.h +++ b/src/config.h @@ -141,7 +141,7 @@ public: // Load performance mode. 0 for load just rotating encoder, 1 load just when Select is pushed bool GetPerformanceSelectToLoad (void) const; - const char *GetEngineType (void) const; + uint8_t GetEngineType (void) const; private: @@ -210,7 +210,7 @@ private: bool m_bMIDIDumpEnabled; bool m_bProfileEnabled; bool m_bPerformanceSelectToLoad; - std::string m_EngineType; + uint8_t m_EngineType; };