1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-24 06:03:28 +00:00

Use the "cc" module namespace instead of "craftos"

This is what we actually discussed in the issue, and I failed to
remember.
This commit is contained in:
SquidDev 2019-07-27 11:34:36 +01:00
parent a2880b12ca
commit 93310850d2
17 changed files with 17 additions and 17 deletions

View File

@ -6,7 +6,7 @@
local expect
do
local h = fs.open("rom/modules/main/craftos/expect.lua", "r")
local h = fs.open("rom/modules/main/cc/expect.lua", "r")
local f, err = loadstring(h.readAll(), "@expect.lua")
h.close()

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
-- Colors
white = 1

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
CHANNEL_GPS = 65534

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
local sPath = "/rom/help"

View File

@ -1,6 +1,6 @@
-- Definition for the IO API
local expect, typeOf = dofile("rom/modules/main/craftos/expect.lua").expect, _G.type
local expect, typeOf = dofile("rom/modules/main/cc/expect.lua").expect, _G.type
--- If we return nil then close the file, as we've reached the end.
-- We use this weird wrapper function as we wish to preserve the varargs

View File

@ -1,7 +1,7 @@
-- Minecraft key code bindings
-- See http://www.minecraftwiki.net/wiki/Key_codes for more info
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
local tKeys = {
nil, "one", "two", "three", "four", -- 1

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
local function drawPixelInternal( xPos, yPos )
term.setCursorPos( xPos, yPos )

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
local native = peripheral

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
CHANNEL_BROADCAST = 65535
CHANNEL_REPEAT = 65533

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
local tSettings = {}

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
local native = (term.native and term.native()) or term
local redirectTarget = native

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
function slowWrite( sText, nRate )
expect(2, nRate, "number", "nil")

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
local tHex = {
[ colors.white ] = "0",

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
-- Setup process switching
local parentTerm = term.current()

View File

@ -1,4 +1,4 @@
local expect = dofile("rom/modules/main/craftos/expect.lua").expect
local expect = dofile("rom/modules/main/cc/expect.lua").expect
local multishell = multishell
local parentShell = shell

View File

@ -1,5 +1,5 @@
describe("craftos.expect", function()
local e = require("craftos.expect")
describe("cc.expect", function()
local e = require("cc.expect")
it("checks a single type", function()
expect(e.expect(1, "test", "string")):eq(true)