Drop old require syntax (no more .lua extension)

This commit is contained in:
Bart van Strien
2011-06-22 14:54:29 +02:00
parent d34d907b00
commit 160c17c180
3 changed files with 6 additions and 12 deletions
+2 -2
View File
@@ -254,7 +254,7 @@ function love.init()
-- If config file exists, load it and allow it to update config table.
if not love.conf and love.filesystem and love.filesystem.exists("conf.lua") then
require("conf.lua")
require("conf")
end
-- Yes, conf.lua might not exist, but there are other ways of making
@@ -303,7 +303,7 @@ function love.init()
if love.filesystem then
love.filesystem.setRelease(c.release and is_fused_game)
if c.identity then love.filesystem.setIdentity(c.identity) end
if love.filesystem.exists("main.lua") then require("main.lua") end
if love.filesystem.exists("main.lua") then require("main") end
end
if no_game_code then