warning fixes

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1703 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
nakeee 2008-12-28 15:49:19 +00:00
parent 847dc93b73
commit 20b6438b4b
1 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ std::string Config::CheckForDuplicateNames(std::string _Name, std::vector<std::s
{ {
// Count the number of duplicate names // Count the number of duplicate names
int NumDuplicates = 0; int NumDuplicates = 0;
for(int i = 0; i < Duplicates.size(); i++) for(u32 i = 0; i < Duplicates.size(); i++)
if(_Name == Duplicates.at(i)) NumDuplicates++; if(_Name == Duplicates.at(i)) NumDuplicates++;
Duplicates.push_back(_Name); // Add the name Duplicates.push_back(_Name); // Add the name
@ -173,7 +173,7 @@ void Config::Save()
// Load settings from file // Load settings from file
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ // ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
void Config::Load(bool Config) void Config::Load(bool config)
{ {
IniFile file; IniFile file;
file.Load("nJoy.ini"); file.Load("nJoy.ini");
@ -188,7 +188,7 @@ void Config::Load(bool Config)
std::string SectionName = StringFromFormat("PAD%i", i+1); std::string SectionName = StringFromFormat("PAD%i", i+1);
// Don't update this when we are loading settings from the ConfigBox // Don't update this when we are loading settings from the ConfigBox
if(!Config) if(!config)
{ {
file.Get(SectionName.c_str(), "joy_id", &joysticks[i].ID, 0); file.Get(SectionName.c_str(), "joy_id", &joysticks[i].ID, 0);
file.Get(SectionName.c_str(), "enabled", &joysticks[i].enabled, 1); file.Get(SectionName.c_str(), "enabled", &joysticks[i].enabled, 1);