added a Path type and reverted to vga

master
Able 2022-04-25 15:33:17 -05:00
parent 2b431f3c0a
commit f11bd99adc
Signed by untrusted user: able
GPG Key ID: D164AF5F5700BE51
2 changed files with 24 additions and 2 deletions

View File

@ -21,7 +21,8 @@ run-args = [
"-soundhw", "pcspk",
"-device", "virtio-gpu-pci",
"-device", "VGA",
# "-device", "virtio-gpu-pci",
# "-machine", "pcspk-audiodev=0",

View File

@ -24,7 +24,7 @@ pub fn scratchpad() {
for node in axel {
info!("{:?}", node);
}
/*
use crate::devices::pci::brute_force_scan;
let infos = brute_force_scan();
for device in infos {
@ -40,10 +40,14 @@ pub fn scratchpad() {
}
}
*/
// sound(1000);
// sound_off();
// acpi();
Path::new("/".to_string());
real_shell();
}
use crate::port_io::write16;
@ -227,3 +231,20 @@ pub fn sound_off() {
}
use cpuio::inb;
pub struct Path {
pub path: Vec<String>,
}
impl Path {
pub fn new(path: String) -> Self {
let mut path_vec_string = vec![];
for part in path.split(&['\\', '/'][..]) {
path_vec_string.push(part.to_string());
}
Path {
path: path_vec_string,
}
}
}