diff options
author | Paul Gilbert | 2012-09-28 22:15:59 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-09-28 22:15:59 +1000 |
commit | 7c9ad56aac27ea9dc799abc50314a0cdaa3fe0d9 (patch) | |
tree | a503d89c2743b60794b14d24f85e44f102687277 /engines/hopkins/files.cpp | |
parent | 221050f39f677bcbc1396d7e24d70a3e8ed98a75 (diff) | |
download | scummvm-rg350-7c9ad56aac27ea9dc799abc50314a0cdaa3fe0d9.tar.gz scummvm-rg350-7c9ad56aac27ea9dc799abc50314a0cdaa3fe0d9.tar.bz2 scummvm-rg350-7c9ad56aac27ea9dc799abc50314a0cdaa3fe0d9.zip |
HOPKINS: Implemented many of the previously stubbed methods
Diffstat (limited to 'engines/hopkins/files.cpp')
-rw-r--r-- | engines/hopkins/files.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/hopkins/files.cpp b/engines/hopkins/files.cpp index 4e8eb0d80f..f84b597c9a 100644 --- a/engines/hopkins/files.cpp +++ b/engines/hopkins/files.cpp @@ -125,6 +125,15 @@ void FileManager::DMESS1() { // No implementation in original } +void FileManager::bload(const Common::String &file, byte *buf) { + Common::File f; + if (!f.open(file)) + error("Error openinig file - %s", file.c_str()); + int32 filesize = f.size(); + FileManager::bload_it(f, buf, filesize); + f.close(); +} + int FileManager::bload_it(Common::ReadStream &stream, void *buf, size_t nbytes) { return stream.read(buf, nbytes); } @@ -325,4 +334,8 @@ uint32 FileManager::FLONG(const Common::String &filename) { return size; } +void FileManager::CONSTRUIT_LINUX(const Common::String &file) { + warning("TODO: CONSTRUIT_LINUX"); +} + } // End of namespace Hopkins |