Skip to content

Commit 9b4588b

Browse files
committed
add default port to ocnetfs
1 parent 455f441 commit 9b4588b

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

OCNetFS/conf.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,7 @@ function love.conf(t)
1111
t.modules.mouse = false
1212
t.modules.physics = false
1313
t.modules.sound = false
14+
t.modules.touch = false
15+
t.modules.video = false
1416
t.modules.window = false
1517
end

OCNetFS/ocnetfs.lua

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,13 @@ end
1010

1111
local shell = require("shell")
1212
local args,opts = shell.parse(...)
13-
if #args < 2 then
14-
print("Usage: ocnetfs ip port")
13+
if #args < 1 or #args > 2 then
14+
print("Usage: ocnetfs ip [port]")
1515
return
1616
end
17+
if #args < 2 then
18+
args[2] = "14948"
19+
end
1720

1821
local ip,port = args[1],tonumber(args[2])
1922
if port == nil then

0 commit comments

Comments
 (0)