Skip to content
This repository has been archived by the owner on Sep 19, 2020. It is now read-only.

Commit

Permalink
OneOS 1.3 release, fixed environment bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oeed committed Nov 11, 2014
1 parent 64d499d commit 4540506
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion System/.hash
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.86449353E9
4.99783031E8
1 change: 1 addition & 0 deletions System/API/Environment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ GetCleanEnvironment = function(self)
for k, v in pairs(cleanEnvironment) do
cleanEnv[k] = v
end
cleanEnv._G = cleanEnv
return cleanEnv
end

Expand Down
7 changes: 5 additions & 2 deletions startup
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
isDebug = false

cleanEnvironment = {}
for k, v in pairs(_G) do
cleanEnvironment[k] = v
end

isDebug = false

oldTerm = term

--[[
Expand Down Expand Up @@ -294,6 +294,7 @@ function PastebinPut(file)
end

function BootMenu()
local Drawing = LegacyDrawing
Log.i('Entered Boot Menu')
Drawing.Clear(colours.white)
Drawing.DrawCharactersCenter(nil, (-Drawing.Screen.Height/2) + 2, nil, nil, 'OneOS', colours.blue, colours.white)
Expand Down Expand Up @@ -627,6 +628,8 @@ elseif Start() then
print(v)
end

local Drawing = LegacyDrawing

PrintCentered('Checking for file modifications...', Drawing.Screen.Height-3)
local modified = IsSystemModified()
term.clearLine()
Expand Down

0 comments on commit 4540506

Please sign in to comment.