fix screenshot timestamp funny
This commit is contained in:
parent
4728a81e02
commit
d5179d0339
2 changed files with 6 additions and 3 deletions
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
@ -4,5 +4,8 @@
|
||||||
"${3rd}/love2d/library"
|
"${3rd}/love2d/library"
|
||||||
],
|
],
|
||||||
"Lua.workspace.checkThirdParty": false,
|
"Lua.workspace.checkThirdParty": false,
|
||||||
"Lua.completion.autoRequire": false
|
"Lua.completion.autoRequire": false,
|
||||||
|
"files.watcherExclude": {
|
||||||
|
"**/target": true
|
||||||
|
}
|
||||||
}
|
}
|
2
main.lua
2
main.lua
|
@ -124,7 +124,7 @@ function love.draw()
|
||||||
]]
|
]]
|
||||||
|
|
||||||
local ss = screenshotCanvas:newImageData(0, 1, 0, 0, screenshotsize, screenshotsize)
|
local ss = screenshotCanvas:newImageData(0, 1, 0, 0, screenshotsize, screenshotsize)
|
||||||
ss:encode('png', 'screenshot ' .. os.date('%Y-%m-%d %H-%m') .. '.png')
|
ss:encode('png', 'screenshot ' .. os.date('%Y-%m-%d %H-%M') .. '.png')
|
||||||
love.system.openURL('file://' .. love.filesystem.getSaveDirectory())
|
love.system.openURL('file://' .. love.filesystem.getSaveDirectory())
|
||||||
|
|
||||||
screenshot = false
|
screenshot = false
|
||||||
|
|
Loading…
Reference in a new issue