Small clean up to InfoWindow and fix for Summarize_Drives()

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3299 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
death2droid
2009-05-31 00:55:20 +00:00
parent 81354ea368
commit 71e895ddf7
3 changed files with 15 additions and 8 deletions

View File

@ -109,15 +109,17 @@ std::string Summarize_CPU()
std::string Summarize_Drives()
{
char ** drives = cdio_get_devices();
std::string drive;
for (int i = 0; drives[i] != NULL && i < 24; i++)
{
return StringFromFormat(
"CD/DVD Drive%d: %s",
i+1,
drives[i]
);
drive += StringFromFormat(
"CD/DVD Drive%d: %s\n",
i+1,
drives[i]
);
}
return drive;
}
#endif //__SUMMARIZE_H__