feat: support for USB mass storage devices, hotplugging

This commit is contained in:
2026-05-18 17:47:12 +02:00
parent d340e01e56
commit c20579afd3
36 changed files with 1537 additions and 130 deletions
+5
View File
@@ -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);