Merge pull request #19 from B14CK313/patch-2

Fixed path returned by temp_filename not writeable
This commit is contained in:
Francesco
2021-01-22 08:29:48 +01:00
committed by GitHub
+1 -1
View File
@@ -443,7 +443,7 @@ end
function core.temp_filename(ext) function core.temp_filename(ext)
temp_file_counter = temp_file_counter + 1 temp_file_counter = temp_file_counter + 1
return EXEDIR .. PATHSEP .. temp_file_prefix return USERDIR .. PATHSEP .. temp_file_prefix
.. string.format("%06x", temp_file_counter) .. (ext or "") .. string.format("%06x", temp_file_counter) .. (ext or "")
end end