1
0
mirror of https://github.com/kepler155c/opus synced 2025-12-12 03:18:08 +00:00

version checking + ui cleanup

This commit is contained in:
kepler155c@gmail.com
2017-10-12 17:58:35 -04:00
parent 3460dd68b2
commit a9634cb438
6 changed files with 48 additions and 37 deletions

View File

@@ -15,14 +15,6 @@ local shell = _ENV.shell
multishell.setTitle(multishell.getCurrent(), 'System')
UI:configure('System', ...)
local mcVersion = _G._MC_VERSION or 'unknown'
if _G._HOST then
local version = _G._HOST:match('%S+ %S+ %((%S.+)%)')
if version then
mcVersion = version:match('Minecraft (%S+)') or version
end
end
local env = {
path = shell.path(),
aliases = shell.aliases(),
@@ -129,7 +121,7 @@ local systemPage = UI.Page {
{ name = '', value = '' },
{ name = 'CC version', value = Util.getVersion() },
{ name = 'Lua version', value = _VERSION },
{ name = 'MC version', value = mcVersion },
{ name = 'MC version', value = Util.getMinecraftVersion() },
{ name = 'Disk free', value = Util.toBytes(fs.getFreeSpace('/')) },
{ name = 'Computer ID', value = tostring(os.getComputerID()) },
{ name = 'Day', value = tostring(os.day()) },