mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-17 03:05:30 -04:00
oh ffs...
This commit is contained in:
parent
3fdea0e2f0
commit
9eb445b4aa
@ -40,14 +40,14 @@ repeat
|
||||
until choice
|
||||
choice = candidates[choice]
|
||||
|
||||
local cp = loadfile(shell.resolve("cp", "lua"))
|
||||
local cp = loadfile(shell.resolve("cp", "lua"))
|
||||
|
||||
print("Installing OpenOS to device " .. choice.address)
|
||||
local boot = "/mnt/" .. computer.getBootAddress():sub(1, 3) .. "/"
|
||||
local mnt = "/mnt/" .. choice.address:sub(1, 3) .. "/"
|
||||
local function install(what, path)
|
||||
print("Installing " .. what .. "...")
|
||||
local result, reason = pcall(cp, "-vf", boot .. path, mnt)
|
||||
local result, reason = pcall(cp, "-vf", boot .. path, mnt)
|
||||
if not result then
|
||||
error(reason, 0)
|
||||
end
|
||||
|
@ -81,7 +81,7 @@ abstract class GraphicsCard extends component.ManagedComponent {
|
||||
screen(s => {
|
||||
val oldValue = s.getBackgroundColor
|
||||
val (oldColor, oldIndex) =
|
||||
if (s.isBackroundFromPalette) {
|
||||
if (s.isBackgroundFromPalette) {
|
||||
(s.getPaletteColor(oldValue), oldValue)
|
||||
}
|
||||
else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user