mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-06 23:15:18 +00:00
PPU/LLVM: Fix unsigned/signed type comparaison warning
This commit is contained in:
parent
02a1bffc12
commit
60d5dd40f7
3 changed files with 19 additions and 6 deletions
|
|
@ -121,6 +121,12 @@ void Ini::Save(const std::string& section, const std::string& key, int value)
|
|||
saveIniFile();
|
||||
}
|
||||
|
||||
void Ini::Save(const std::string& section, const std::string& key, unsigned int value)
|
||||
{
|
||||
static_cast<CSimpleIniCaseA*>(m_config)->SetLongValue(section.c_str(), key.c_str(), value);
|
||||
saveIniFile();
|
||||
}
|
||||
|
||||
void Ini::Save(const std::string& section, const std::string& key, bool value)
|
||||
{
|
||||
static_cast<CSimpleIniCaseA*>(m_config)->SetBoolValue(section.c_str(), key.c_str(), value);
|
||||
|
|
@ -150,6 +156,11 @@ int Ini::Load(const std::string& section, const std::string& key, const int def_
|
|||
return static_cast<CSimpleIniCaseA*>(m_config)->GetLongValue(section.c_str(), key.c_str(), def_value);
|
||||
}
|
||||
|
||||
unsigned int Ini::Load(const std::string& section, const std::string& key, const unsigned int def_value)
|
||||
{
|
||||
return static_cast<CSimpleIniCaseA*>(m_config)->GetLongValue(section.c_str(), key.c_str(), def_value);
|
||||
}
|
||||
|
||||
bool Ini::Load(const std::string& section, const std::string& key, const bool def_value)
|
||||
{
|
||||
return StringToBool(static_cast<CSimpleIniCaseA*>(m_config)->GetValue(section.c_str(), key.c_str(), BoolToString(def_value).c_str()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue