Small Fixes

pull/443/head
donluca 2 years ago
parent 74cbbda007
commit 981cc06970
  1. 3
      src/config.cpp
  2. 4
      src/config.h

@ -122,6 +122,7 @@ 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 = (unsigned)m_Properties.GetString ("EngineType", "MSFA");
} }
const char *CConfig::GetSoundDevice (void) const const char *CConfig::GetSoundDevice (void) const
@ -389,7 +390,7 @@ bool CConfig::GetPerformanceSelectToLoad (void) const
return m_bPerformanceSelectToLoad; return m_bPerformanceSelectToLoad;
} }
uint8_t CConfig::GetEngineType (void) const unsigned CConfig::GetEngineType (void) const
{ {
return m_EngineType; 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;
uint8_t GetEngineType (void) const; unsigned 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;
uint8_t m_EngineType; unsigned m_EngineType;
}; };

Loading…
Cancel
Save