1 #include <msp/fs/dir.h>
15 Asset::Asset(const string &name)
17 Seekable *file = new BufferedFile((FS::get_sys_data_dir()/name).str());
22 priv->file->signal_flush_required.connect(signal_flush_required);
31 unsigned Asset::do_read(char *buf, unsigned size)
33 return priv->file->read(buf, size);
36 SeekOffset Asset::seek(SeekOffset off, SeekType type)
38 return priv->file->seek(off, type);
41 SeekOffset Asset::tell() const
43 return priv->file->tell();