pub fn load_buf(name: &str) -> FileBuf
Read the whole file with the given name from ROM.
If you have a pre-allocated buffer of the right size, use load instead.
16 17 18 19 20 21
extern fn boot() { let file = ff::rom::load_buf("img"); unsafe { IMAGE.set(file).ok().unwrap(); } }