VFSaur work. String split bug.
This commit is contained in:
parent
8cce5ef731
commit
59cf6ef4d7
|
@ -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
|
||||||
}
|
}
|
1
sysdata/programs/vfsaur/README.md
Normal file
1
sysdata/programs/vfsaur/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
# vfsaur
|
11
sysdata/programs/vfsaur/meta.toml
Normal file
11
sysdata/programs/vfsaur/meta.toml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[package]
|
||||||
|
name = "vfsaur"
|
||||||
|
authors = [""]
|
||||||
|
|
||||||
|
[dependants.libraries]
|
||||||
|
|
||||||
|
[dependants.binaries]
|
||||||
|
hblang.version = "1.0.0"
|
||||||
|
|
||||||
|
[build]
|
||||||
|
command = "hblang src/main.hb"
|
32
sysdata/programs/vfsaur/src/main.hb
Normal file
32
sysdata/programs/vfsaur/src/main.hb
Normal 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
|
||||||
|
}
|
|
@ -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_mouse_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"
|
||||||
|
|
Loading…
Reference in a new issue