mirror of
https://github.com/kepler155c/opus
synced 2024-06-25 06:33:22 +00:00
Add option to remove splash on startup
Adds the setting option 'opus.show_splash'. By default it is set to true. When set to false opus will immediately boot without showing the splash screen. Fairly straightforward.
This commit is contained in:
parent
43163053a5
commit
118932c0b5
11
startup.lua
11
startup.lua
|
@ -117,6 +117,16 @@ local function splash()
|
|||
term.write(str)
|
||||
end
|
||||
|
||||
local doSplash = true
|
||||
if settings then
|
||||
doSplash = settings.get('opus.show_splash')
|
||||
if doSplash == nil then
|
||||
doSplash = true
|
||||
settings.set('opus.show_splash', true)
|
||||
settings.save('.settings')
|
||||
end
|
||||
end
|
||||
if doSplash then
|
||||
term.clear()
|
||||
splash()
|
||||
|
||||
|
@ -135,6 +145,7 @@ while true do
|
|||
break
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
term.clear()
|
||||
term.setCursorPos(1, 1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user