Include complete path when printing screenshot info

pull/57/head
JDV 2022-03-03 13:19:56 -06:00 committed by jjdelvalle
parent 92d67968f5
commit 4dfa234bc3
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ function love.keypressed(key, scancode)
love.filesystem.remove("ss")
love.filesystem.createDirectory("ss")
end
print("Saving screenshot as "..ss_name)
print("Saving screenshot as "..love.filesystem.getSaveDirectory().."/"..ss_name)
GLOBAL_CANVAS:newImageData():encode("png", ss_name)
-- function keys are reserved
elseif string.match(scancode, "^f[1-9]$") or string.match(scancode, "^f[1-9][0-9]+$") then