From 623671df7a95bc73c56378e3b1af9b87ecd388a0 Mon Sep 17 00:00:00 2001 From: nakeee Date: Fri, 20 Mar 2009 12:23:05 +0000 Subject: [PATCH] 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 +- Source/Plugins/Plugin_VideoOGL/Src/Config.cpp | 4 ++-- Source/Plugins/Plugin_VideoOGL/Src/Globals.h | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) 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; } diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Config.cpp b/Source/Plugins/Plugin_VideoOGL/Src/Config.cpp index 55443a6d51..4d0f44dda9 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Config.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/Config.cpp @@ -19,7 +19,7 @@ #include "Common.h" #include "IniFile.h" #include "Config.h" -#include "ConfigManager.h" +#include "../../../Core/Core/Src/ConfigManager.h" // FIXME Config g_Config; @@ -94,7 +94,7 @@ void Config::GameIniLoad() { if (iniFile->Exists("Video", "EFBCopyDisableHotKey")) iniFile->Get("Video", "EFBCopyDisableHotKey", &bEFBCopyDisableHotKey, 0); - if (iniFile->Exists("Video", "ProjectionHax1")) + if (iniFile->Exists("Video", "ProjectionHax1")) iniFile->Get("Video", "ProjectionHax1", &bProjectionHax1, 0); if (iniFile->Exists("Video", "EFBToTextureEnable")) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/Globals.h b/Source/Plugins/Plugin_VideoOGL/Src/Globals.h index 9e23d02fe7..2080880f34 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/Globals.h +++ b/Source/Plugins/Plugin_VideoOGL/Src/Globals.h @@ -23,7 +23,6 @@ #include "VideoCommon.h" #include "pluginspecs_video.h" -#include "ConfigManager.h" // A global plugin specification extern PLUGIN_GLOBALS* globals;