feat: vfs - add dynamic filesystem mounts and safe unmount lifecycle
This commit is contained in:
@@ -238,18 +238,12 @@ void filemanager_read_drives(FileManagerState* fm) {
|
||||
for (int di = 0; di < driveCount; di++) {
|
||||
int d = drives[di];
|
||||
char probe[8];
|
||||
if (d < 10) {
|
||||
probe[0] = '0' + d;
|
||||
probe[1] = ':';
|
||||
probe[2] = '/';
|
||||
probe[3] = '\0';
|
||||
} else {
|
||||
probe[0] = '1';
|
||||
probe[1] = '0' + (d - 10);
|
||||
probe[2] = ':';
|
||||
probe[3] = '/';
|
||||
probe[4] = '\0';
|
||||
}
|
||||
int pi = 0;
|
||||
if (d >= 10) probe[pi++] = (char)('0' + (d / 10));
|
||||
probe[pi++] = (char)('0' + (d % 10));
|
||||
probe[pi++] = ':';
|
||||
probe[pi++] = '/';
|
||||
probe[pi] = '\0';
|
||||
char label[64];
|
||||
montauk::strcpy(label, "Drive ");
|
||||
str_append(label, probe, 64);
|
||||
|
||||
Reference in New Issue
Block a user