mirror of
https://github.com/Adorable-Catgirl/Zorya-NEO.git
synced 2024-11-27 12:48:07 +11:00
31 lines
765 B
Lua
31 lines
765 B
Lua
local zy = krequire("zorya")
|
|
local vdev = krequire("util_vcomponent")
|
|
vdev.register("ZORYA_BIOS", "zybios",
|
|
{
|
|
get_threads_info = function()
|
|
local threads = {}
|
|
for i=1, zy.lkthdn() do
|
|
local info = zy.lkthdi(i)
|
|
threads[i] = {
|
|
name = info[1],
|
|
deadline = info[4],
|
|
delta = info.delta
|
|
}
|
|
end
|
|
return threads
|
|
end,
|
|
get_version = function()
|
|
return string.format("%1.1f.%d", _ZVER, _ZPAT)
|
|
end,
|
|
get_git_revision = function()
|
|
return _ZGIT
|
|
end
|
|
},
|
|
{
|
|
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."
|
|
}
|
|
)
|
|
|
|
return true |