2
0
bjorn 9 жил өмнө
parent
commit
da33467ebf

+ 3 - 1
app/goregous/goregous.lua → app/goregous.lua

@@ -1,4 +1,4 @@
-Goregous = {}
+local Goregous = {}
 
 Goregous.mock = true
 
@@ -93,3 +93,5 @@ function Goregous:listServers()
 
   return servers
 end
+
+return Goregous

+ 1 - 1
app/patcher.lua

@@ -6,7 +6,7 @@ function Patcher:load()
   local os = love.system.getOS()
   if os == 'OS X' then os = 'OSX' end
 
-  local code, gameData = Goregous:patch(version, os)
+  local code, gameData = app.goregous:patch(version, os)
   if false and code and f.exe(self['patch' .. os], self, code, gameData) then
     love.event.quit()
   else

+ 1 - 1
data/menu/menulogin.lua

@@ -54,7 +54,7 @@ function MenuLogin:login()
   local username = ctx.input:val('username')
   if #username == 0 then return end
 
-  local success = Goregous:login(username)
+  local success = app.goregous:login(username)
   if success then
     _G['username'] = username
     ctx.user.username = username

+ 1 - 1
data/menu/menumain.lua

@@ -36,7 +36,7 @@ function MenuMain:mousepressed(x, y, button)
 end
 
 function MenuMain:host()
-  local success = Goregous:createServer()
+  local success = app.goregous:createServer()
   if success then
     local server = app.core.context:add(app.core.server)
     server.owner = username

+ 1 - 1
data/menu/menuserverlist.lua

@@ -61,6 +61,6 @@ function MenuServerList:mousepressed(x, y, button)
 end
 
 function MenuServerList:refresh()
-  self.servers = Goregous:listServers()
+  self.servers = app.goregous:listServers()
 end