feat: support for USB mass storage devices, hotplugging
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Fs::Vfs {
|
||||
struct BackendFile {
|
||||
int driveNumber;
|
||||
int localHandle;
|
||||
uint32_t generation;
|
||||
};
|
||||
|
||||
struct FsDriver {
|
||||
@@ -32,7 +33,11 @@ namespace Fs::Vfs {
|
||||
};
|
||||
|
||||
void Initialize();
|
||||
bool IsInitialized();
|
||||
int RegisterDrive(int driveNumber, FsDriver* driver);
|
||||
int UnregisterDrive(int driveNumber);
|
||||
bool IsDriveRegistered(int driveNumber);
|
||||
int FindLowestAvailableDrive(int firstDrive = 0);
|
||||
|
||||
int OpenBackendFile(const char* path, BackendFile& outFile);
|
||||
int CreateBackendFile(const char* path, BackendFile& outFile);
|
||||
|
||||
Reference in New Issue
Block a user