mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-13 07:49:19 +01:00
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:
parent
8a35ed5c6b
commit
afef9b2251
@ -63,6 +63,8 @@ void dirlist(char* path)
|
|||||||
|
|
||||||
if (pdir != NULL)
|
if (pdir != NULL)
|
||||||
{
|
{
|
||||||
|
u32 sentinel = 0;
|
||||||
|
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
struct dirent* pent = readdir(pdir);
|
struct dirent* pent = readdir(pdir);
|
||||||
@ -85,10 +87,13 @@ void dirlist(char* path)
|
|||||||
{
|
{
|
||||||
printf("%s (%d)\n", dnbuf, (int)statbuf.st_size);
|
printf("%s (%d)\n", dnbuf, (int)statbuf.st_size);
|
||||||
}
|
}
|
||||||
|
sentinel++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (sentinel == 0)
|
||||||
|
printf("absolutely nothing\n");
|
||||||
|
|
||||||
closedir(pdir);
|
closedir(pdir);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -102,7 +107,10 @@ int main()
|
|||||||
Initialise();
|
Initialise();
|
||||||
|
|
||||||
if(fatInitDefault())
|
if(fatInitDefault())
|
||||||
|
{
|
||||||
|
printf("fatInitDefault() OK!\n");
|
||||||
dirlist("/");
|
dirlist("/");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
printf("fatInitDefault() failure.\n");
|
printf("fatInitDefault() failure.\n");
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user