mirror of
https://github.com/cyberarm/w3d_hub_linux_launcher.git
synced 2025-12-16 01:02:34 +00:00
Fixed crash on Windows due to not ensuring file mode is binary for saving app icons
This commit is contained in:
@@ -35,6 +35,7 @@ GEM
|
|||||||
rake (>= 12.0.0, < 14.0.0)
|
rake (>= 12.0.0, < 14.0.0)
|
||||||
excon (0.78.1)
|
excon (0.78.1)
|
||||||
ffi (1.15.5)
|
ffi (1.15.5)
|
||||||
|
ffi (1.15.5-x64-mingw-ucrt)
|
||||||
ffi (1.15.5-x64-mingw32)
|
ffi (1.15.5-x64-mingw32)
|
||||||
fiber-local (1.0.0)
|
fiber-local (1.0.0)
|
||||||
gosu (1.4.1)
|
gosu (1.4.1)
|
||||||
@@ -61,6 +62,7 @@ GEM
|
|||||||
timers (4.3.3)
|
timers (4.3.3)
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
|
x64-mingw-ucrt
|
||||||
x64-mingw32
|
x64-mingw32
|
||||||
x86_64-linux
|
x86_64-linux
|
||||||
|
|
||||||
|
|||||||
@@ -134,7 +134,7 @@ class W3DHub
|
|||||||
if image_bmp?(image)
|
if image_bmp?(image)
|
||||||
to_rgba32_blob(image).save(filename)
|
to_rgba32_blob(image).save(filename)
|
||||||
else
|
else
|
||||||
File.write(filename, image_data(image))
|
File.open(filename, "wb") { |f| f.write(image_data(image)) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user