1
0
Fork 0

Fix TGA file writing on Windows

Before this patch, the tga_encoder mod would write corrupted TGA files
on Windows: Bytes that looked like newlines were replaced by a carriage
return and a newline.
patch_skins
Nils Dagsson Moskopp 2022-01-30 20:33:06 +01:00
parent 3f60b5baa6
commit adb8e45d67
No known key found for this signature in database
GPG Key ID: A3BC671C35191080
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ function image:encode()
end
function image:save(filename)
local f = assert(io.open(filename, "w"))
local f = assert(io.open(filename, "wb"))
f:write(self.data)
f:close()
end