Use the new scheme format in most places

The graphics subsystem still uses the old format as orbital manually
parses the fpath result.
This commit is contained in:
bjorn3
2024-07-11 21:14:42 +02:00
parent 21b2e90d50
commit fd8dabd1bc
22 changed files with 56 additions and 56 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ impl DiskScheme {
let mut size = 0;
// TODO: handle error
for line in std::fs::read_to_string("sys:env").context("failed to read env")?.lines() {
for line in std::fs::read_to_string("/scheme/sys/env").context("failed to read env")?.lines() {
let mut parts = line.splitn(2, '=');
let name = parts.next().unwrap_or("");
let value = parts.next().unwrap_or("");
@@ -69,7 +69,7 @@ impl DiskScheme {
let size = end - start;
let the_data = unsafe {
let file = File::open("memory:physical")?;
let file = File::open("/scheme/memory/physical")?;
let base = libredox::call::mmap(MmapArgs {
fd: file.as_raw_fd() as usize,
addr: core::ptr::null_mut(),