pull/443/head
donluca 2 years ago
parent 46bd334daf
commit c2deb77a43
  1. 5
      src/config.cpp
  2. 4
      src/config.h

@ -122,7 +122,6 @@ void CConfig::Load (void)
m_bMIDIDumpEnabled = m_Properties.GetNumber ("MIDIDumpEnabled", 0) != 0; m_bMIDIDumpEnabled = m_Properties.GetNumber ("MIDIDumpEnabled", 0) != 0;
m_bProfileEnabled = m_Properties.GetNumber ("ProfileEnabled", 0) != 0; m_bProfileEnabled = m_Properties.GetNumber ("ProfileEnabled", 0) != 0;
m_bPerformanceSelectToLoad = m_Properties.GetNumber ("PerformanceSelectToLoad", 1) != 0; m_bPerformanceSelectToLoad = m_Properties.GetNumber ("PerformanceSelectToLoad", 1) != 0;
m_EngineType = m_Properties.GetString ("EngineType", "MSFA");
} }
const char *CConfig::GetSoundDevice (void) const const char *CConfig::GetSoundDevice (void) const
@ -390,7 +389,7 @@ bool CConfig::GetPerformanceSelectToLoad (void) const
return m_bPerformanceSelectToLoad; return m_bPerformanceSelectToLoad;
} }
const char *CConfig::GetEngineType (void) const uint8_t CConfig::GetEngineType (void) const
{ {
return m_EngineType.c_str(); return m_EngineType;
} }

@ -141,7 +141,7 @@ public:
// Load performance mode. 0 for load just rotating encoder, 1 load just when Select is pushed // Load performance mode. 0 for load just rotating encoder, 1 load just when Select is pushed
bool GetPerformanceSelectToLoad (void) const; bool GetPerformanceSelectToLoad (void) const;
const char *GetEngineType (void) const; uint8_t GetEngineType (void) const;
private: private:
@ -210,7 +210,7 @@ private:
bool m_bMIDIDumpEnabled; bool m_bMIDIDumpEnabled;
bool m_bProfileEnabled; bool m_bProfileEnabled;
bool m_bPerformanceSelectToLoad; bool m_bPerformanceSelectToLoad;
std::string m_EngineType; uint8_t m_EngineType;
}; };

Loading…
Cancel
Save