mirror of
https://github.com/love2d/love.git
synced 2026-08-14 01:20:56 +02:00
Added an optional search order enum ("first" or "last") to love.filesystem.setIdentity and love.filesystem.mount (resolves issue #694)
This commit is contained in:
@@ -294,6 +294,7 @@ function love.init()
|
||||
},
|
||||
console = false, -- Only relevant for windows.
|
||||
identity = false,
|
||||
identityorder = "first",
|
||||
release = false,
|
||||
}
|
||||
|
||||
@@ -381,8 +382,10 @@ 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") end
|
||||
love.filesystem.setIdentity(c.identity or love.filesystem.getIdentity(), c.identityorder)
|
||||
if love.filesystem.exists("main.lua") then
|
||||
require("main")
|
||||
end
|
||||
end
|
||||
|
||||
if no_game_code then
|
||||
|
||||
Reference in New Issue
Block a user