linux USB device detection works

This commit is contained in:
Chris Danford
2003-12-17 07:07:36 +00:00
parent 2487e17d95
commit 5614e772a3
+2 -1
View File
@@ -249,7 +249,7 @@ MemoryCardManager* MEMCARDMAN = NULL; // global and accessable from anywhere in
return false;
struct stat st;
if( stat(ent->d_name, &st) == -1 )
if( fstat(g_fds, &st) == -1 )
{
LOG->Warn( "stat failed." );
return false;
@@ -266,6 +266,7 @@ MemoryCardManager* MEMCARDMAN = NULL; // global and accessable from anywhere in
if( UsbChanged() )
{
SCREENMAN->SystemMessage( "USB changed" );
return;
vector<UsbStorageDevice> vOld = g_StorageDevices; // make a copy
UpdateAttachedUsbStorageDevices();
vector<UsbStorageDevice> &vNew = g_StorageDevices;