mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-11 06:02:37 -05:00
rbutil: Upps.. i hope the last one. :-/
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13689 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
802db8e83f
commit
f5936c062f
1 changed files with 3 additions and 1 deletions
|
|
@ -207,7 +207,7 @@ wxArrayString getPossibleMountPoints()
|
||||||
wxArrayString tempList;
|
wxArrayString tempList;
|
||||||
|
|
||||||
FILE *fp = fopen( "/proc/mounts", "r" );
|
FILE *fp = fopen( "/proc/mounts", "r" );
|
||||||
if( !fp ) return wxT("");
|
if( !fp ) return tempList;
|
||||||
char *dev, *dir;
|
char *dev, *dir;
|
||||||
while( fscanf( fp, "%as %as %*s %*s %*s %*s", &dev, &dir ) != EOF )
|
while( fscanf( fp, "%as %as %*s %*s %*s %*s", &dev, &dir ) != EOF )
|
||||||
{
|
{
|
||||||
|
|
@ -217,6 +217,8 @@ wxArrayString getPossibleMountPoints()
|
||||||
free( dir );
|
free( dir );
|
||||||
}
|
}
|
||||||
fclose( fp );
|
fclose( fp );
|
||||||
|
|
||||||
|
return tempList;
|
||||||
}
|
}
|
||||||
|
|
||||||
wxString resolve_mount_point( const wxString device )
|
wxString resolve_mount_point( const wxString device )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue