VFSaur work. String split bug.

This commit is contained in:
Able 2024-12-21 06:05:12 -06:00
parent 8cce5ef731
commit 59cf6ef4d7
5 changed files with 50 additions and 3 deletions

View file

@ -14,7 +14,5 @@ MonitoredProcess := struct {
main := fn(): int {
log.info("Angels Halo reincarnation server started.\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.render_example]
path = "boot:///render_example.hbf"
@ -50,5 +51,9 @@ path = "boot:///ps2_mouse_driver.hbf"
# [boot.limine.ableos.modules.angels_halo]
# path = "boot:///angels_halo.hbf"
# [boot.limine.ableos.modules.test]
# path = "boot:///test.hbf"
#
[boot.limine.ableos.modules.vfsaur]
path = "boot:///vfsaur.hbf"