fix screenshot timestamp funny

This commit is contained in:
jill 2021-09-27 00:13:52 +03:00
parent 4728a81e02
commit d5179d0339
2 changed files with 6 additions and 3 deletions

View file

@ -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
}
} }

View file

@ -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