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

This commit is contained in:
daniel committed 2026-03-07 15:58:27 +01:00
1 parent 10826c6298
commit b540a43f39
48 files changed
+5777 -873

No files matched your search

+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