Hi there, so I'm using this function:
Code: Select all
utils.readTextFile = function (path)
local f = assert(io.open(path, "rb"))
local content = f:read("*all")
f:close()
return content
end
and this works when I run the game in "dev" mode, but it fails when I try to run the game after I packed it inside the AppImage file (following the wiki instructions). This makes sense to me somehow but, what would be the right way to fix it? I see love.filesystem has a bunch of useful methods to get paths, but Idk if something will work for my case.
This is the error I get, and it makes sense since (I guess) it's looking for the assets folder at the same level as the AppImage file is?