mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 01:29:42 -06:00
Warning cleanup, mainly shadowed variables, const/non-const and ctor initialization order
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5098 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -562,7 +562,7 @@ void CGameListCtrl::ScanForISOs()
|
||||
std::vector<std::string> drives = cdio_get_devices();
|
||||
GameListItem * Drive[24];
|
||||
// Another silly Windows limitation of 24 drive letters
|
||||
for (int i = 0; i < drives.size() != NULL && i < 24; i++)
|
||||
for (int i = 0; i < drives.size() && i < 24; i++)
|
||||
{
|
||||
Drive[i] = new GameListItem(drives[i].c_str());
|
||||
if (Drive[i]->IsValid()) m_ISOFiles.push_back(*Drive[i]);
|
||||
|
@ -300,7 +300,6 @@ bool DolphinApp::OnInit()
|
||||
chdir(AppSupportDir);
|
||||
|
||||
//create all necessary dir in user directory
|
||||
char user_path[500];
|
||||
if (!File::Exists(File::GetUserPath(D_CONFIG_IDX))) File::CreateDir(File::GetUserPath(D_CONFIG_IDX));
|
||||
if (!File::Exists(File::GetUserPath(D_GCUSER_IDX))) File::CreateFullPath(File::GetUserPath(D_GCUSER_IDX));
|
||||
if (!File::Exists(File::GetUserPath(D_WIISYSCONF_IDX))) File::CreateFullPath(File::GetUserPath(D_WIISYSCONF_IDX));
|
||||
|
@ -538,7 +538,7 @@ bool CWiiSaveCrypted::getPaths(bool _export)
|
||||
return true;
|
||||
}
|
||||
|
||||
void CWiiSaveCrypted::ScanForFiles(std::string savDir, std::vector<std::string>&FilesList, u32 *_numFiles, u32 *_sizeFiles)
|
||||
void CWiiSaveCrypted::ScanForFiles(std::string savDir, std::vector<std::string>& FileList, u32 *_numFiles, u32 *_sizeFiles)
|
||||
{
|
||||
std::vector<std::string> Directories;
|
||||
*_numFiles = *_sizeFiles = 0;
|
||||
@ -546,7 +546,7 @@ void CWiiSaveCrypted::ScanForFiles(std::string savDir, std::vector<std::string>&
|
||||
Directories.push_back(savDir);
|
||||
for (u32 i = 0; i < Directories.size(); i++)
|
||||
{
|
||||
if (i) FilesList.push_back(Directories.at(i));//add dir to fst
|
||||
if (i) FileList.push_back(Directories.at(i));//add dir to fst
|
||||
|
||||
File::FSTEntry FST_Temp;
|
||||
File::ScanDirectoryTree(Directories.at(i).c_str(), FST_Temp);
|
||||
@ -564,7 +564,7 @@ void CWiiSaveCrypted::ScanForFiles(std::string savDir, std::vector<std::string>&
|
||||
}
|
||||
else
|
||||
{
|
||||
FilesList.push_back(FST_Temp.children.at(j).physicalName);
|
||||
FileList.push_back(FST_Temp.children.at(j).physicalName);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user