Change key names, and put it in section Controls.
This commit is contained in:
parent
fad2468e30
commit
b9fc26540e
|
@ -41,20 +41,20 @@ bool InputPlugin::LoadConfig(bool isGC)
|
||||||
std::string type;
|
std::string type;
|
||||||
if (isGC)
|
if (isGC)
|
||||||
{
|
{
|
||||||
type = "GC";
|
type = "Pad";
|
||||||
path = "Profiles/GCPad/";
|
path = "Profiles/GCPad/";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
type = "Wii";
|
type = "Wiimote";
|
||||||
path = "Profiles/Wiimote/";
|
path = "Profiles/Wiimote/";
|
||||||
}
|
}
|
||||||
game_ini.Load(File::GetUserPath(D_GAMECONFIG_IDX) + SConfig::GetInstance().m_LocalCoreStartupParameter.GetUniqueID() + ".ini");
|
game_ini.Load(File::GetUserPath(D_GAMECONFIG_IDX) + SConfig::GetInstance().m_LocalCoreStartupParameter.GetUniqueID() + ".ini");
|
||||||
for (int i = 0; i < 4; i++)
|
for (int i = 0; i < 4; i++)
|
||||||
{
|
{
|
||||||
if (game_ini.Exists("Core", (type + "Profile" + num[i]).c_str()))
|
if (game_ini.Exists("Controls", (type + "Profile" + num[i]).c_str()))
|
||||||
{
|
{
|
||||||
game_ini.Get("Core", (type + "Profile" + num[i]).c_str(), &profile[i]);
|
game_ini.Get("Controls", (type + "Profile" + num[i]).c_str(), &profile[i]);
|
||||||
if (File::Exists(File::GetUserPath(D_CONFIG_IDX) + path + profile[i] + ".ini"))
|
if (File::Exists(File::GetUserPath(D_CONFIG_IDX) + path + profile[i] + ".ini"))
|
||||||
useProfile[i] = true;
|
useProfile[i] = true;
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue