[Project64] Make sure CSettingTypeApplicationIndex use uint32_t

This commit is contained in:
zilmar 2018-04-09 18:03:38 +10:00
parent 1a6c579d3e
commit bab9d93ebb
2 changed files with 54 additions and 54 deletions

View File

@ -36,69 +36,69 @@ CSettingTypeApplicationIndex::~CSettingTypeApplicationIndex ( void )
{
}
bool CSettingTypeApplicationIndex::Load ( int Index, bool & Value ) const
bool CSettingTypeApplicationIndex::Load(uint32_t Index, bool & Value) const
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
return CSettingTypeApplication::Load(0, Value);
}
bool CSettingTypeApplicationIndex::Load ( int Index, uint32_t & Value ) const
bool CSettingTypeApplicationIndex::Load(uint32_t Index, uint32_t & Value) const
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
return CSettingTypeApplication::Load(0, Value);
}
bool CSettingTypeApplicationIndex::Load ( int Index, stdstr & Value ) const
bool CSettingTypeApplicationIndex::Load(uint32_t Index, std::string & Value) const
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
return CSettingTypeApplication::Load(0, Value);
}
//return the default values
void CSettingTypeApplicationIndex::LoadDefault ( int Index, bool & Value ) const
void CSettingTypeApplicationIndex::LoadDefault(uint32_t Index, bool & Value) const
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
CSettingTypeApplication::LoadDefault(0, Value);
}
void CSettingTypeApplicationIndex::LoadDefault ( int Index, uint32_t & Value ) const
void CSettingTypeApplicationIndex::LoadDefault(uint32_t Index, uint32_t & Value) const
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
CSettingTypeApplication::LoadDefault(0, Value);
}
void CSettingTypeApplicationIndex::LoadDefault ( int Index, stdstr & Value ) const
void CSettingTypeApplicationIndex::LoadDefault(uint32_t Index, std::string & Value) const
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
CSettingTypeApplication::LoadDefault(0, Value);
}
//Update the settings
void CSettingTypeApplicationIndex::Save ( int Index, bool Value )
void CSettingTypeApplicationIndex::Save(uint32_t Index, bool Value)
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
CSettingTypeApplication::Save(0, Value);
}
void CSettingTypeApplicationIndex::Save ( int Index, uint32_t Value )
void CSettingTypeApplicationIndex::Save(uint32_t Index, uint32_t Value)
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
CSettingTypeApplication::Save(0, Value);
}
void CSettingTypeApplicationIndex::Save ( int Index, const stdstr & Value )
void CSettingTypeApplicationIndex::Save(uint32_t Index, const std::string & Value)
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
CSettingTypeApplication::Save(0, Value);
}
void CSettingTypeApplicationIndex::Save ( int Index, const char * Value )
void CSettingTypeApplicationIndex::Save(uint32_t Index, const char * Value)
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
CSettingTypeApplication::Save(0, Value);
}
void CSettingTypeApplicationIndex::Delete ( int Index )
void CSettingTypeApplicationIndex::Delete(uint32_t Index)
{
m_KeyNameIdex = stdstr_f("%s %d", m_KeyName.c_str(), Index);
CSettingTypeApplication::Save(0, (const char *)NULL);

View File

@ -23,23 +23,23 @@ public:
virtual bool IndexBasedSetting(void) const { return true; }
//return the values
virtual bool Load(int32_t Index, bool & Value) const;
virtual bool Load(int32_t Index, uint32_t & Value) const;
virtual bool Load(int32_t Index, stdstr & Value) const;
virtual bool Load(uint32_t Index, bool & Value) const;
virtual bool Load(uint32_t Index, uint32_t & Value) const;
virtual bool Load(uint32_t Index, std::string & Value) const;
//return the default values
virtual void LoadDefault(int32_t Index, bool & Value) const;
virtual void LoadDefault(int32_t Index, uint32_t & Value) const;
virtual void LoadDefault(int32_t Index, stdstr & Value) const;
virtual void LoadDefault(uint32_t Index, bool & Value) const;
virtual void LoadDefault(uint32_t Index, uint32_t & Value) const;
virtual void LoadDefault(uint32_t Index, std::string & Value) const;
//Update the settings
virtual void Save(int32_t Index, bool Value);
virtual void Save(int32_t Index, uint32_t Value);
virtual void Save(int32_t Index, const stdstr & Value);
virtual void Save(int32_t Index, const char * Value);
virtual void Save(uint32_t Index, bool Value);
virtual void Save(uint32_t Index, uint32_t Value);
virtual void Save(uint32_t Index, const std::string & Value);
virtual void Save(uint32_t Index, const char * Value);
// Delete the setting
virtual void Delete(int32_t Index);
virtual void Delete(uint32_t Index);
private:
CSettingTypeApplicationIndex(void); // Disable default constructor