mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-25 23:37:57 +00:00
making section names case insenstive
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2688 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f22af37320
commit
623671df7a
@ -66,7 +66,7 @@ Section::Section(const Section& other)
|
|||||||
const Section* IniFile::GetSection(const char* sectionName) const
|
const Section* IniFile::GetSection(const char* sectionName) const
|
||||||
{
|
{
|
||||||
for (std::vector<Section>::const_iterator iter = sections.begin(); iter != sections.end(); ++iter)
|
for (std::vector<Section>::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 (&(*iter));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@
|
|||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include "IniFile.h"
|
#include "IniFile.h"
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include "ConfigManager.h"
|
#include "../../../Core/Core/Src/ConfigManager.h" // FIXME
|
||||||
|
|
||||||
Config g_Config;
|
Config g_Config;
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ void Config::GameIniLoad() {
|
|||||||
if (iniFile->Exists("Video", "EFBCopyDisableHotKey"))
|
if (iniFile->Exists("Video", "EFBCopyDisableHotKey"))
|
||||||
iniFile->Get("Video", "EFBCopyDisableHotKey", &bEFBCopyDisableHotKey, 0);
|
iniFile->Get("Video", "EFBCopyDisableHotKey", &bEFBCopyDisableHotKey, 0);
|
||||||
|
|
||||||
if (iniFile->Exists("Video", "ProjectionHax1"))
|
if (iniFile->Exists("Video", "ProjectionHax1"))
|
||||||
iniFile->Get("Video", "ProjectionHax1", &bProjectionHax1, 0);
|
iniFile->Get("Video", "ProjectionHax1", &bProjectionHax1, 0);
|
||||||
|
|
||||||
if (iniFile->Exists("Video", "EFBToTextureEnable"))
|
if (iniFile->Exists("Video", "EFBToTextureEnable"))
|
||||||
|
@ -23,7 +23,6 @@
|
|||||||
|
|
||||||
#include "VideoCommon.h"
|
#include "VideoCommon.h"
|
||||||
#include "pluginspecs_video.h"
|
#include "pluginspecs_video.h"
|
||||||
#include "ConfigManager.h"
|
|
||||||
|
|
||||||
// A global plugin specification
|
// A global plugin specification
|
||||||
extern PLUGIN_GLOBALS* globals;
|
extern PLUGIN_GLOBALS* globals;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user