mirror of
https://github.com/SashLilac/cambridge.git
synced 2024-11-21 15:49:01 -06:00
Compare commits
2 Commits
92d67968f5
...
9e447d51a7
Author | SHA1 | Date | |
---|---|---|---|
|
9e447d51a7 | ||
|
4dfa234bc3 |
2
main.lua
2
main.lua
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user