NOOK Driver: Support stoarge card.

This commit is contained in:
John Schember 2009-12-07 07:35:57 -05:00
parent 44a78a9f0f
commit 25d1900458

View File

@ -27,6 +27,7 @@ class NOOK(USBMS):
VENDOR_NAME = 'B&N'
WINDOWS_MAIN_MEM = 'NOOK'
WINDOWS_CARD_A_MEM = 'NOOK'
#OSX_MAIN_MEM = ''
@ -34,3 +35,12 @@ class NOOK(USBMS):
EBOOK_DIR_MAIN = 'my documents'
SUPPORTS_SUB_DIRS = True
def windows_sort_drives(self, drives):
main = drives.get('main', None)
card = drives.get('carda', None)
if card and main and card < main:
drives['main'] = card
drives['carda'] = main
return drives