mirror of
https://github.com/AR2000AR/openComputers_codes.git
synced 2025-09-08 14:41:14 +02:00
moved everything in bin etc lib or shared folders
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -2,4 +2,4 @@
|
|||||||
updateFiles.bat
|
updateFiles.bat
|
||||||
.vscode/
|
.vscode/
|
||||||
libGUI/libGUI/widget/Keypad.lua
|
libGUI/libGUI/widget/Keypad.lua
|
||||||
misc/
|
/misc/
|
||||||
|
@@ -281,7 +281,7 @@ local function init()
|
|||||||
|
|
||||||
card_wait = gui.Screen()
|
card_wait = gui.Screen()
|
||||||
card_wait:addChild(gui.widget.Rectangle(1, 1, 26, 13, 0xffffff))
|
card_wait:addChild(gui.widget.Rectangle(1, 1, 26, 13, 0xffffff))
|
||||||
card_wait:addChild(gui.widget.Image(9, 4, "/usr/data/bank_atm/floppy8x8.pam"))
|
card_wait:addChild(gui.widget.Image(9, 4, "/usr/share/bank_atm/floppy8x8.pam"))
|
||||||
main_screen:addChild(card_wait)
|
main_screen:addChild(card_wait)
|
||||||
|
|
||||||
keypad = gui.widget.Keypad(10, 2, 0xc3c3c3, true, 4)
|
keypad = gui.widget.Keypad(10, 2, 0xc3c3c3, true, 4)
|
@@ -17,7 +17,7 @@ local B_NAME_POPUP_CLOSE = "pc"
|
|||||||
local B_NAME_C = "c"
|
local B_NAME_C = "c"
|
||||||
local B_NAME_FLOPPY = "fp"
|
local B_NAME_FLOPPY = "fp"
|
||||||
local B_NAME_MAGCARD = "mg"
|
local B_NAME_MAGCARD = "mg"
|
||||||
local IMG_PATH = "/usr/data/bank_client/"
|
local IMG_PATH = "/usr/share/bank_client/"
|
||||||
local mode = MODE_IDLE
|
local mode = MODE_IDLE
|
||||||
|
|
||||||
local touchListenerId = nil
|
local touchListenerId = nil
|
@@ -44,7 +44,7 @@ Screen.draw = function(self, useBuffer)
|
|||||||
gpu.setActiveBuffer(drawBuffer)
|
gpu.setActiveBuffer(drawBuffer)
|
||||||
end
|
end
|
||||||
for _, widget in ipairs(self.childs) do
|
for _, widget in ipairs(self.childs) do
|
||||||
if (widget:isVisible()) then widget:draw() end
|
if (widget:isVisible()) then widget:draw(false) end --draw(false) so other screens don't create new buffers
|
||||||
end
|
end
|
||||||
if (useBuffer) then
|
if (useBuffer) then
|
||||||
gpu.bitblt(0)
|
gpu.bitblt(0)
|
@@ -61,9 +61,8 @@ Image.setHeight = function(self) error("Can change a image size", 2) end
|
|||||||
Image.setSize = function(self) error("Can change a image size", 2) end
|
Image.setSize = function(self) error("Can change a image size", 2) end
|
||||||
Image.setDrawMethod = function(self, drawMethod) self.private.drawMethod = drawMethod end
|
Image.setDrawMethod = function(self, drawMethod) self.private.drawMethod = drawMethod end
|
||||||
Image.getDrawMethod = function(self) return self.private.drawMethod end
|
Image.getDrawMethod = function(self) return self.private.drawMethod end
|
||||||
Image.draw = function(self, drawMethod)
|
Image.draw = function(self)
|
||||||
if (drawMethod == nil) then drawMethod = self:getDrawMethod() end
|
if (self:getDrawMethod() == Image.DRAW_METHOD_NEW) then
|
||||||
if (drawMethod == Image.DRAW_METHOD_NEW) then
|
|
||||||
self.private.draw.new(self)
|
self.private.draw.new(self)
|
||||||
else
|
else
|
||||||
self.private.draw.old(self)
|
self.private.draw.old(self)
|
64
programs.cfg
64
programs.cfg
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
["bank_api"] = {
|
["bank_api"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/bank_api/bank_api.lua"] = "/lib",
|
[":master/bank_api/lib/"] = "/lib",
|
||||||
["master/bank_api/bank_api"] = "/man"
|
[":master/bank_api/man/"] = "/man"
|
||||||
},
|
},
|
||||||
name = "Bank API",
|
name = "Bank API",
|
||||||
description = "API used to send request to the bank server",
|
description = "API used to send request to the bank server",
|
||||||
@@ -12,8 +12,8 @@
|
|||||||
},
|
},
|
||||||
["libcb"] = {
|
["libcb"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/libCB/libCB.lua"] = "/lib",
|
[":master/libCB/lib/"] = "/lib",
|
||||||
["master/libCB/libCB"] = "/man"
|
[":master/libCB/man/"] = "/man"
|
||||||
},
|
},
|
||||||
name = "libCB",
|
name = "libCB",
|
||||||
description = "library used to read and write CB",
|
description = "library used to read and write CB",
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
},
|
},
|
||||||
["bank_dev_tools"] = {
|
["bank_dev_tools"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/bank_dev_tools/accountEdit.lua"] = "/bin"
|
[":master/bank_dev_tools/bin/"] = "/bin"
|
||||||
},
|
},
|
||||||
name = "bank_dev_tools",
|
name = "bank_dev_tools",
|
||||||
description = "collection of tools used to help in the bank software development",
|
description = "collection of tools used to help in the bank software development",
|
||||||
@@ -33,9 +33,8 @@
|
|||||||
},
|
},
|
||||||
["bank_server"] = {
|
["bank_server"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/bank_server/bank_server.lua"] = "//etc/rc.d",
|
[":master/bank_server/rc./"] = "//etc/rc.d",
|
||||||
["master/bank_server/generateClientSecret.lua"] = "/bin",
|
[":master/bank_server/bin/"] = "/bin"
|
||||||
["master/bank_server/generateClientAPIconfig.lua"] = "/bin"
|
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
["libcb"] = "/"
|
["libcb"] = "/"
|
||||||
@@ -48,9 +47,8 @@
|
|||||||
},
|
},
|
||||||
["libgui"] = {
|
["libgui"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/libGUI/libGUI.lua"] = "/lib",
|
[":master/libGUI/lib/"] = "/lib",
|
||||||
[":master/libGUI/libGUI"] = "/lib/libGUI",
|
[":master/libGUI/bin/"] = "/bin"
|
||||||
["master/libGUI/openIMG.lua"] = "/bin"
|
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
["libclass"] = "/"
|
["libclass"] = "/"
|
||||||
@@ -63,7 +61,7 @@
|
|||||||
},
|
},
|
||||||
["libgui_extra"] = {
|
["libgui_extra"] = {
|
||||||
files = {
|
files = {
|
||||||
[":master/libGUI-extra/libGUI"] = "/lib/libGUI"
|
[":master/libGUI-extra/lib/"] = "/lib"
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
["libgui"] = "/"
|
["libgui"] = "/"
|
||||||
@@ -75,8 +73,8 @@
|
|||||||
},
|
},
|
||||||
["bank_client"] = {
|
["bank_client"] = {
|
||||||
files = {
|
files = {
|
||||||
[":master/bank_client/data/bank_client"] = "/data/bank_client",
|
[":master/bank_client/share/"] = "/share",
|
||||||
["master/bank_client/bankClient.lua"] = "/bin"
|
[":master/bank_client/bin/"] = "/bin"
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
["libgui"] = "/",
|
["libgui"] = "/",
|
||||||
@@ -92,8 +90,8 @@
|
|||||||
},
|
},
|
||||||
["item_id_catcher"] = {
|
["item_id_catcher"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/itemIdCatcher/itemIdCatcher.lua"] = "/bin",
|
[":master/itemIdCatcher/bin/"] = "/bin",
|
||||||
["master/itemIdCatcher/itemIdCatcher"] = "/man"
|
[":master/itemIdCatcher/man/"] = "/man"
|
||||||
},
|
},
|
||||||
name = "itemIdCatcher",
|
name = "itemIdCatcher",
|
||||||
description = "Write id of item in the chest on the top to a file",
|
description = "Write id of item in the chest on the top to a file",
|
||||||
@@ -103,7 +101,7 @@
|
|||||||
},
|
},
|
||||||
["libclass"] = {
|
["libclass"] = {
|
||||||
files = {
|
files = {
|
||||||
[":master/libClass"] = "/lib"
|
[":/master/libClass/lib/"] = "/lib"
|
||||||
},
|
},
|
||||||
name = "libClass",
|
name = "libClass",
|
||||||
description = "Class library for lua",
|
description = "Class library for lua",
|
||||||
@@ -112,7 +110,7 @@
|
|||||||
},
|
},
|
||||||
["libcoin"] = {
|
["libcoin"] = {
|
||||||
files = {
|
files = {
|
||||||
[":master/libCoin"] ="/lib"
|
[":/master/libCoin/lib/"] ="/lib"
|
||||||
},
|
},
|
||||||
name = "libCoin",
|
name = "libCoin",
|
||||||
description = "small library used to moved coins from ordinarycoins from one chest to a other",
|
description = "small library used to moved coins from ordinarycoins from one chest to a other",
|
||||||
@@ -121,8 +119,8 @@
|
|||||||
},
|
},
|
||||||
["bank_atm"] = {
|
["bank_atm"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/bank_atm/atm.lua"] = "/bin",
|
[":master/bank_atm/bin/"] = "/bin",
|
||||||
[":master/bank_atm/data/"] = "/data"
|
[":master/bank_atm/share/"] = "/share"
|
||||||
},
|
},
|
||||||
name = "bank atm",
|
name = "bank atm",
|
||||||
description = "atm that work with my bank server",
|
description = "atm that work with my bank server",
|
||||||
@@ -138,8 +136,8 @@
|
|||||||
},
|
},
|
||||||
["door_ctrl"] = {
|
["door_ctrl"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/doorCtrl/doorCtrl.lua"] = "/bin",
|
[":master/doorCtrl/bin/"] = "/bin",
|
||||||
["?master/doorCtrl/doorCtrl.conf"] = "//etc"
|
["?master/doorCtrl/etc/doorCtrl.conf"] = "//etc"
|
||||||
},
|
},
|
||||||
name = "Door controller",
|
name = "Door controller",
|
||||||
description = "Controll your doors with multiple redstone io block",
|
description = "Controll your doors with multiple redstone io block",
|
||||||
@@ -152,8 +150,8 @@
|
|||||||
},
|
},
|
||||||
["autocrafter"] = {
|
["autocrafter"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/autocrafter/autocrafter.lua"] = "/bin",
|
[":master/autocrafter/bin/"] = "/bin",
|
||||||
["master/autocrafter/autocrafterEEPROM.lua"] = "/misc"
|
[":master/autocrafter/misc/"] = "/misc"
|
||||||
},
|
},
|
||||||
name = "AutoCrafter",
|
name = "AutoCrafter",
|
||||||
description = "User a robot linked via a linked card to craft item from a inventory",
|
description = "User a robot linked via a linked card to craft item from a inventory",
|
||||||
@@ -162,8 +160,8 @@
|
|||||||
},
|
},
|
||||||
["stargate"] = {
|
["stargate"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/stargate_ctl/stargate.lua"] = "/bin",
|
[":master/stargate_ctl/bin/"] = "/bin",
|
||||||
[":master/stargate_ctl/data"] = "/data"
|
[":master/stargate_ctl/share/"] = "/share"
|
||||||
},
|
},
|
||||||
name = "Stargate Ctl",
|
name = "Stargate Ctl",
|
||||||
description = "GUI to controll stargates from SGCraft",
|
description = "GUI to controll stargates from SGCraft",
|
||||||
@@ -172,8 +170,8 @@
|
|||||||
},
|
},
|
||||||
["vending"] = {
|
["vending"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/vending/vending.lua"] = "/bin",
|
[":master/vending/bin/"] = "/bin",
|
||||||
[":master/vending/etc/vending"] = "//etc/vending"
|
[":master/vending/etc/vendin/"] = "//etc/vending"
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
["libCoin"] = "/",
|
["libCoin"] = "/",
|
||||||
@@ -186,7 +184,7 @@
|
|||||||
},
|
},
|
||||||
["bank_account_maker"] = {
|
["bank_account_maker"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/account_maker/accountMaker.lua"] = "/bin"
|
[":master/account_maker/bin/"] = "/bin"
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
["bank_api"] = "/"
|
["bank_api"] = "/"
|
||||||
@@ -198,8 +196,8 @@
|
|||||||
},
|
},
|
||||||
["lnfsc"] = {
|
["lnfsc"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/lnfs/lnfs.lua"] = "/lib",
|
[":master/lnfs/lnfsc/lib/"] = "/lib",
|
||||||
["master/lnfs/mount.lnfs.lua"] = "/bin"
|
[":master/lnfs/lnfsc/bin/"] = "/bin"
|
||||||
},
|
},
|
||||||
name = "Lua Network File System Client",
|
name = "Lua Network File System Client",
|
||||||
description = "Let you mount a files ystem hosted by a other computer using lnfss and use it as if it was a local file system",
|
description = "Let you mount a files ystem hosted by a other computer using lnfss and use it as if it was a local file system",
|
||||||
@@ -208,8 +206,8 @@
|
|||||||
},
|
},
|
||||||
["lnfss"] = {
|
["lnfss"] = {
|
||||||
files = {
|
files = {
|
||||||
["master/lnfs/lnfsd.lua"] = "//etc/rc.d",
|
[":master/lnfs/lnfss/rc./"] = "//etc/rc.d",
|
||||||
["master/lnfs/lnfsd"] = "/man"
|
[":master/lnfs/lnfss/man/"] = "/man"
|
||||||
},
|
},
|
||||||
name = "Lua Network File System Server",
|
name = "Lua Network File System Server",
|
||||||
description = "Share your local file system with other computers. Root folder is configurable in rc.cfg",
|
description = "Share your local file system with other computers. Root folder is configurable in rc.cfg",
|
||||||
|
@@ -13,7 +13,7 @@ local WHITELIST_FILE = CONFIG_PATH .. "whitelist.csv"
|
|||||||
local BLACKLIST_FILE = CONFIG_PATH .. "blacklist.csv"
|
local BLACKLIST_FILE = CONFIG_PATH .. "blacklist.csv"
|
||||||
local CONFIG_FILE = CONFIG_PATH .. "stargate.cfg"
|
local CONFIG_FILE = CONFIG_PATH .. "stargate.cfg"
|
||||||
local GATE_LIST = CONFIG_PATH .. "gates.csv"
|
local GATE_LIST = CONFIG_PATH .. "gates.csv"
|
||||||
local IMG_ROOT = "/usr/data/stargate/"
|
local IMG_ROOT = "/usr/share/stargate/"
|
||||||
local IRIS_STATE = {IMG_ROOT .. "iris1.pam", IMG_ROOT .. "iris2.pam", IMG_ROOT .. "iris3.pam"}
|
local IRIS_STATE = {IMG_ROOT .. "iris1.pam", IMG_ROOT .. "iris2.pam", IMG_ROOT .. "iris3.pam"}
|
||||||
local GATE_STATE = {[0] = IMG_ROOT .. "sg00.pam", IMG_ROOT .. "sg01.pam", IMG_ROOT .. "sg02.pam", IMG_ROOT .. "sg03.pam", IMG_ROOT .. "sg04.pam", IMG_ROOT .. "sg05.pam", IMG_ROOT .. "sg06.pam", IMG_ROOT .. "sg07.pam", IMG_ROOT .. "sg08.pam", IMG_ROOT .. "sg09.pam", IMG_ROOT .. "sg10.pam"}
|
local GATE_STATE = {[0] = IMG_ROOT .. "sg00.pam", IMG_ROOT .. "sg01.pam", IMG_ROOT .. "sg02.pam", IMG_ROOT .. "sg03.pam", IMG_ROOT .. "sg04.pam", IMG_ROOT .. "sg05.pam", IMG_ROOT .. "sg06.pam", IMG_ROOT .. "sg07.pam", IMG_ROOT .. "sg08.pam", IMG_ROOT .. "sg09.pam", IMG_ROOT .. "sg10.pam"}
|
||||||
local VORTEX = IMG_ROOT .. "vortex.pam"
|
local VORTEX = IMG_ROOT .. "vortex.pam"
|
Reference in New Issue
Block a user