I'm wanting to see if the conf.lua file is stored in the correct directory for editing, so:
I've used
config = love.filesystem.exists( "conf.lua" )
To check if it's there.
To display the result, I tried
love.graphics.print("Is the config there?: " .. config, 0, 80, 0)
But that's giving me an "Attempt to concatenate global variable "config" (boolean) error.
So how do I display the result of the check on screen?
Also, I've tried
Code: Select all
function checkconfig()
isitthere = "Unchecked"
config = love.filesystem.exists("conf.lua")
if config == "True" Then
isitthere = "Yep"
else
isitthere = "Nope"
end
end