1
0
mirror of https://github.com/Adorable-Catgirl/Zorya-NEO.git synced 2024-11-14 22:38:07 +11:00
Zorya-NEO/mods/vdev_biosdev/init.lua

31 lines
765 B
Lua
Raw Normal View History

2020-01-15 12:07:27 +11:00
local zy = krequire("zorya")
2020-03-06 23:47:12 +11:00
local vdev = krequire("util_vcomponent")
2020-03-12 09:19:08 +11:00
vdev.register("ZORYA_BIOS", "zybios",
{
2020-01-15 12:07:27 +11:00
get_threads_info = function()
local threads = {}
for i=1, zy.lkthdn() do
local info = zy.lkthdi(i)
threads[i] = {
name = info[1],
2020-03-13 08:01:05 +11:00
deadline = info[4],
delta = info.delta
2020-01-15 12:07:27 +11:00
}
end
return threads
end,
get_version = function()
2020-03-12 09:19:08 +11:00
return string.format("%1.1f.%d", _ZVER, _ZPAT)
2020-01-15 12:07:27 +11:00
end,
get_git_revision = function()
return _ZGIT
end
},
{
2020-01-15 12:07:27 +11:00
get_threads_info = "get_threads_info():table -- Returns the BIOS thread information.",
get_version = "get_version():string -- Returns the Zorya NEO version.",
get_git_revision = "get_git_revision():string -- Returns the git revision of the build."
}
2020-03-12 09:19:08 +11:00
)
2020-01-15 12:07:27 +11:00
return true