diff --git a/common/autorun/common.lua b/common/autorun/common.lua index 834a23e..d67d732 100644 --- a/common/autorun/common.lua +++ b/common/autorun/common.lua @@ -1,6 +1,10 @@ -_ENV.shell.setCompletionFunction("packages/common/edit.lua", - function(shell, nIndex, sText) - if nIndex == 1 then - return _G.fs.complete(sText, shell.dir(), true, false) - end - end) +local c = function(shell, nIndex, sText) + if nIndex == 1 then + return _G.fs.complete(sText, shell.dir(), true, false) + end +end + +_ENV.shell.setCompletionFunction("packages/common/edit.lua", c) +_ENV.shell.setCompletionFunction("packages/common/hexedit.lua", c) + +fs.mount('packages/common/hexedit.lua', 'urlfs', 'https://pastebin.com/raw/Ds9ajsp4') diff --git a/common/etc/apps.db b/common/etc/apps.db index 4b6bc43..642b565 100644 --- a/common/etc/apps.db +++ b/common/etc/apps.db @@ -114,4 +114,13 @@ Needs work \0304 ", run = "multiMiner.lua", }, + [ "hexedit" ] = { + title = "hexEdit", + category = "Apps", + requires = "advancedComputer", + icon = "  dfŸfdŒdf›f5Œ5f›\ +dˆ‘5ˆ‘d™f€5™\ +  fd‚Œ†5Œ†", + run = "packages/common/hexedit.lua", + }, }