uhhhh, forgot to specify explict binary reading and writing for sunshine settings save file
This commit is contained in:
parent
db64eb7f0f
commit
ac007c56c9
|
|
@ -33,7 +33,7 @@ module Settings
|
||||||
Settings.reset!
|
Settings.reset!
|
||||||
|
|
||||||
if FileTest.exist?(Settings::FILE_PATH)
|
if FileTest.exist?(Settings::FILE_PATH)
|
||||||
File.open(Settings::FILE_PATH, "r") do |f|
|
File.open(Settings::FILE_PATH, "rb") do |f|
|
||||||
settings = Marshal.load(f) rescue return
|
settings = Marshal.load(f) rescue return
|
||||||
if settings.class == Hash
|
if settings.class == Hash
|
||||||
settings.each do |key, value|
|
settings.each do |key, value|
|
||||||
|
|
@ -50,7 +50,9 @@ module Settings
|
||||||
Settings::Legacy.save!
|
Settings::Legacy.save!
|
||||||
|
|
||||||
if @data
|
if @data
|
||||||
File.write(Settings::FILE_PATH, Marshal.dump(@data))
|
File.open(Settings::FILE_PATH, "wb") do |f|
|
||||||
|
f.write Marshal.dump(@data)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue