minor changes to wii sd test

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3021 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Shawn Hoffman 2009-04-20 16:13:12 +00:00
parent 8a35ed5c6b
commit afef9b2251
1 changed files with 9 additions and 1 deletions

View File

@ -63,6 +63,8 @@ void dirlist(char* path)
if (pdir != NULL)
{
u32 sentinel = 0;
while(true)
{
struct dirent* pent = readdir(pdir);
@ -85,10 +87,13 @@ void dirlist(char* path)
{
printf("%s (%d)\n", dnbuf, (int)statbuf.st_size);
}
sentinel++;
}
}
if (sentinel == 0)
printf("absolutely nothing\n");
closedir(pdir);
}
else
@ -102,7 +107,10 @@ int main()
Initialise();
if(fatInitDefault())
{
printf("fatInitDefault() OK!\n");
dirlist("/");
}
else
printf("fatInitDefault() failure.\n");