PBXGetVolInfoSync is deprecated as is just about every other function that will convert from a path to a vol ref number so don't bother. Just use the volume name to flush since that was the only thing the vol ref number was used for.
Compute volume size using block size times number of blocks.
This commit is contained in:
@@ -11,7 +11,6 @@ struct UsbStorageDevice
|
||||
iBus = -1;
|
||||
iPort = -1;
|
||||
iLevel = -1;
|
||||
iRefNum = -1;
|
||||
sDevice = "";
|
||||
sSerial = "<none>"; // be different than a card with no serial
|
||||
sOsMountDir = "";
|
||||
@@ -28,7 +27,6 @@ struct UsbStorageDevice
|
||||
int iBus;
|
||||
int iPort;
|
||||
int iLevel;
|
||||
int iRefNum;
|
||||
RString sSerial;
|
||||
RString sDevice;
|
||||
RString sOsMountDir; // WITHOUT trailing slash
|
||||
|
||||
Reference in New Issue
Block a user