Method: RGSS.load_save

Defined in:
lib/RGSS/serialize.rb

.load_save(file) ⇒ Object



149
150
151
152
153
154
155
156
157
158
# File 'lib/RGSS/serialize.rb', line 149

def self.load_save(file)
  File.open(file, "rb") do |f|
    data = []
    while not f.eof?
      o = Marshal.load(f)
      data.push(o)
    end
    return data
  end
end