From 8ead97dd41d1f8d3af614c977a609cc118588009 Mon Sep 17 00:00:00 2001 From: Patrick McIlroy Date: Tue, 30 Sep 2008 08:06:30 +0000 Subject: [PATCH] git-svn-id: https://openitg.svn.sourceforge.net/svnroot/openitg@515 83fadc84-e282-4d84-a09a-c4228d6ae7e5 --- src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp b/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp index e3ee2d55..788dbf9a 100755 --- a/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp +++ b/src/arch/MemoryCard/MemoryCardDriverThreaded_Linux.cpp @@ -389,7 +389,18 @@ void GetNewStorageDevices( vector& vDevicesOut ) continue; /* Okay, let me rephrase. Not having the "1" breaks cards on ITG. -- Vyhd */ - usbd.sDevice = "/dev/" + sDevice + "1"; + /** + * === = = === = = = = === = + * = = = = = = = = = = = + * === = = = == = === === + * = = = = = = = = = = + * = === === = = = === = = + * -- infamouspat + */ + if ( IsAFile( "/dev/" + sDevice + "1" ) ) + usbd.sDevice = "/dev/" + sDevice + "1"; + else + usbd.sDevice = "/dev/" + sDevice; SetDeviceInfo( usbd, sPath ); -- 2.11.0