1
0
Fork 0
forked from AbleOS/ableos

VFSaur work. String split bug.

This commit is contained in:
Able 2024-12-21 06:05:12 -06:00 committed by peony
parent 6ec5af6df5
commit c9601fae4a
5 changed files with 50 additions and 3 deletions

View file

@ -14,7 +14,5 @@ MonitoredProcess := struct {
main := fn(): int { main := fn(): int {
log.info("Angels Halo reincarnation server started.\0") log.info("Angels Halo reincarnation server started.\0")
return 0 return 0
} }

View file

@ -0,0 +1 @@
# vfsaur

View file

@ -0,0 +1,11 @@
[package]
name = "vfsaur"
authors = [""]
[dependants.libraries]
[dependants.binaries]
hblang.version = "1.0.0"
[build]
command = "hblang src/main.hb"

View file

@ -0,0 +1,32 @@
stn := @use("stn");
.{log} := stn;
.{info} := log;
.{string} := stn;
.{split_str, iter_split_str} := string;
.{split, iter_split} := string;
.{buffer} := stn
main := fn(): int {
log.info("VFSaur starting.\0")
vfs_buff := buffer.create("VFS\0")
full_path := "acs:/path/to/a/file\0"
splt := split(full_path, ':')
root := iter_split(&splt)
path := iter_split(&splt)
if root == null {
return 1
}
if path == null {
return 2
}
log.info(root)
log.info(path)
return 0
}

View file

@ -23,6 +23,7 @@ resolution = "1024x768x24"
[boot.limine.ableos.modules] [boot.limine.ableos.modules]
[boot.limine.ableos.modules.render_example] [boot.limine.ableos.modules.render_example]
path = "boot:///render_example.hbf" path = "boot:///render_example.hbf"
@ -50,5 +51,9 @@ path = "boot:///ps2_driver.hbf"
# [boot.limine.ableos.modules.angels_halo] # [boot.limine.ableos.modules.angels_halo]
# path = "boot:///angels_halo.hbf" # path = "boot:///angels_halo.hbf"
# [boot.limine.ableos.modules.test] # [boot.limine.ableos.modules.test]
# path = "boot:///test.hbf" # path = "boot:///test.hbf"
#
[boot.limine.ableos.modules.vfsaur]
path = "boot:///vfsaur.hbf"