mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-25 19:30:53 +00:00
Minor tweak to ini_file
This commit is contained in:
parent
b16b67d8b6
commit
d0476f22a0
@ -100,7 +100,7 @@ void IniFile::Section::Set(const char* key, const std::string& newValue, const s
|
||||
|
||||
bool IniFile::Section::Get(const char* key, std::string* value, const char* defaultValue)
|
||||
{
|
||||
std::string* line = GetLine(key, value, 0);
|
||||
const std::string* line = GetLine(key, value, 0);
|
||||
if (!line)
|
||||
{
|
||||
if (defaultValue)
|
||||
|
@ -170,7 +170,7 @@ public:
|
||||
bool DeleteSection(const char* sectionName);
|
||||
|
||||
void SortSections();
|
||||
const std::vector<Section> &Sections() { return sections; }
|
||||
std::vector<Section> &Sections() { return sections; }
|
||||
|
||||
bool HasSection(const char *section) { return GetSection(section) != 0; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user