detect CN again

This commit is contained in:
osmarks 2020-08-23 22:00:05 +01:00
parent 9cc8df3480
commit 6b66155655
1 changed files with 4 additions and 4 deletions

View File

@ -68,6 +68,7 @@ end
-- Detect SC for the SPF -- Detect SC for the SPF
if _G.switchcraft then SPF.server = "switchcraft" end if _G.switchcraft then SPF.server = "switchcraft" end
if _G.codersnet then SPF.server = "codersnet" end
local function rot13(s) local function rot13(s)
local out = {} local out = {}
@ -946,8 +947,8 @@ end
local function run_with_sandbox() local function run_with_sandbox()
-- Load a bunch of necessary PotatoLibraries™ -- Load a bunch of necessary PotatoLibraries™
-- if fs.exists "lib/bigfont" then os.loadAPI "lib/bigfont" end -- if fs.exists "lib/bigfont" then os.loadAPI "lib/bigfont" end
if fs.exists "lib/potatogps" then if fs.exists "lib/gps.lua" then
os.loadAPI "lib/potatogps" os.loadAPI "lib/gps.lua"
_G.gps = _G.potatogps _G.gps = _G.potatogps
end end
@ -1014,7 +1015,7 @@ local function run_with_sandbox()
result = res result = res
os.queueEvent("px_done", this_counter) os.queueEvent("px_done", this_counter)
end end
end, ("px-%s-%d"):format(raw_signature:sub(1, 8), counter)) end, ("px-%s-%d"):format(raw_signature:sub(1, 8), this_counter))
while true do local _, c = os.pullEvent "px_done" if c == this_counter then break end end while true do local _, c = os.pullEvent "px_done" if c == this_counter then break end end
return true, unpack(result) return true, unpack(result)
else else
@ -1545,7 +1546,6 @@ return function(...)
if not http then return "Seriously? Why no HTTP?" end if not http then return "Seriously? Why no HTTP?" end
while true do while true do
-- do updates here -- do updates here
install(false) install(false)
-- Spread out updates a bit to reduce load on the server. -- Spread out updates a bit to reduce load on the server.