From 623671df7a95bc73c56378e3b1af9b87ecd388a0 Mon Sep 17 00:00:00 2001 From: nakeee Date: Fri, 20 Mar 2009 12:23:05 +0000 Subject: making section names case insenstive git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2688 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/IniFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/Src/IniFile.cpp') diff --git a/Source/Core/Common/Src/IniFile.cpp b/Source/Core/Common/Src/IniFile.cpp index 7c39cb2200..038fe0b1d7 100644 --- a/Source/Core/Common/Src/IniFile.cpp +++ b/Source/Core/Common/Src/IniFile.cpp @@ -66,7 +66,7 @@ Section::Section(const Section& other) const Section* IniFile::GetSection(const char* sectionName) const { for (std::vector
::const_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; } -- cgit v1.2.3