linux USB device detection works
This commit is contained in:
@@ -249,7 +249,7 @@ MemoryCardManager* MEMCARDMAN = NULL; // global and accessable from anywhere in
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
struct stat st;
|
struct stat st;
|
||||||
if( stat(ent->d_name, &st) == -1 )
|
if( fstat(g_fds, &st) == -1 )
|
||||||
{
|
{
|
||||||
LOG->Warn( "stat failed." );
|
LOG->Warn( "stat failed." );
|
||||||
return false;
|
return false;
|
||||||
@@ -266,6 +266,7 @@ MemoryCardManager* MEMCARDMAN = NULL; // global and accessable from anywhere in
|
|||||||
if( UsbChanged() )
|
if( UsbChanged() )
|
||||||
{
|
{
|
||||||
SCREENMAN->SystemMessage( "USB changed" );
|
SCREENMAN->SystemMessage( "USB changed" );
|
||||||
|
return;
|
||||||
vector<UsbStorageDevice> vOld = g_StorageDevices; // make a copy
|
vector<UsbStorageDevice> vOld = g_StorageDevices; // make a copy
|
||||||
UpdateAttachedUsbStorageDevices();
|
UpdateAttachedUsbStorageDevices();
|
||||||
vector<UsbStorageDevice> &vNew = g_StorageDevices;
|
vector<UsbStorageDevice> &vNew = g_StorageDevices;
|
||||||
|
|||||||
Reference in New Issue
Block a user