So, this is really weird. I have a button that is supposed to clear all of the preferences that a user has. I have the preferences thing all setup, I'm sure I'm spelling everything correctly, but I just don't know why this isn't working. Here's a snippit from my code:
-- This is the code for my button. It's a button made with LöveFrames, in case you're wondering.
-- The button shows up fine, but it prints "false" to the console, and doesn't delete the file.
clearPrefsButton:SetText("Clear Preferences")
clearPrefsButton:SetPos( optionsFrame:GetWidth()/2-150/2-200, optionsFrame:GetHeight()/2-30/2+70 )
clearPrefsButton:SetSize(150, 30)
clearPrefsButton.OnClick = function(object)
if lf.exists("prefs/") then
local success = lf.remove("assets")
print(success)
else
print("Debug output!")
end
end
Thanks! Any help is appreciated!
"In those quiet moments, you come into my mind" - Liam Reilly