feat: GPT, FAT32 driver, disks app, userspace adapted for multiple drives, and more

This commit is contained in:
2026-03-07 15:58:27 +01:00
parent 8c5c259f5d
commit 4d0177d55e
48 changed files with 5777 additions and 873 deletions
+4 -8
View File
@@ -279,15 +279,11 @@ static bool save_file() {
if (i < numLines - 1) totalSize++; // newline
}
// Try to open existing file first
int handle = montauk::open(path);
// Create (or truncate existing) file
int handle = montauk::fcreate(path);
if (handle < 0) {
// Create new file
handle = montauk::fcreate(path);
if (handle < 0) {
set_status("Error: could not create file");
return false;
}
set_status("Error: could not create file");
return false;
}
// Build content buffer and write