summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/IniFile.cpp
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2009-03-20 15:01:49 +0000
committernakeee <nakeee@gmail.com>2009-03-20 15:01:49 +0000
commitad76edd1571fc447be1c5cc169a029c52bed134b (patch)
treee8e10803b01ca396a4be35243bff9d794f36cb56 /Source/Core/Common/Src/IniFile.cpp
parented70ca6d48333fb4797419506b30c8e9735d4be7 (diff)
Fixed some log messages
Fixed a crash when no game ini exists git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2690 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/IniFile.cpp')
-rw-r--r--Source/Core/Common/Src/IniFile.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/Core/Common/Src/IniFile.cpp b/Source/Core/Common/Src/IniFile.cpp
index 038fe0b1d7..772a822919 100644
--- a/Source/Core/Common/Src/IniFile.cpp
+++ b/Source/Core/Common/Src/IniFile.cpp
@@ -74,7 +74,7 @@ const Section* IniFile::GetSection(const char* sectionName) const
Section* IniFile::GetSection(const char* sectionName)
{
for (std::vector<Section>::iterator iter = sections.begin(); iter != sections.end(); ++iter)
- if (!strcmp(iter->name.c_str(), sectionName))
+ if (!strcasecmp(iter->name.c_str(), sectionName))
return (&(*iter));
return 0;
}
@@ -171,10 +171,10 @@ std::string* IniFile::GetLine(Section* section, const char* key, std::string* va
return 0;
}
-bool IniFile::Exists(const char* sectionName, const char* key)
+bool IniFile::Exists(const char* const sectionName, const char* key) const
{
- const Section* section = GetSection(sectionName);
+ const Section* const section = GetSection(sectionName);
if (!section)
return false;