Method: RGSS#load_data
- Defined in:
- lib/openrgss/rgss.rb
#load_data(filename) ⇒ Object
Loads the data file indicated by filename and restores the object.
$data_actors = load_data("Data/Actors.rvdata2")
This function is essentially the same as:
File.open(filename, "rb") { |f|
obj = Marshal.load(f)
}
However, it differs in that it can load files from within encrypted archives.
132 133 134 135 136 |
# File 'lib/openrgss/rgss.rb', line 132 def load_data(filename) File.open(filename, "rb") { |f| obj = Marshal.load(f) } end |