diff options
author | Paul Gilbert | 2012-09-30 21:02:39 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-09-30 21:02:39 +1000 |
commit | 8fa33e7714fca1aeb80834ee5d97bcfdf8a3efb1 (patch) | |
tree | 6ae96248c989f61494bf784b8c30290462fbdee0 /engines/hopkins/files.cpp | |
parent | 92313216dd0b9a42de528ccab02f87d1894dff2c (diff) | |
download | scummvm-rg350-8fa33e7714fca1aeb80834ee5d97bcfdf8a3efb1.tar.gz scummvm-rg350-8fa33e7714fca1aeb80834ee5d97bcfdf8a3efb1.tar.bz2 scummvm-rg350-8fa33e7714fca1aeb80834ee5d97bcfdf8a3efb1.zip |
HOPKINS: Implemented more object manager methods
Diffstat (limited to 'engines/hopkins/files.cpp')
-rw-r--r-- | engines/hopkins/files.cpp | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/engines/hopkins/files.cpp b/engines/hopkins/files.cpp index f84b597c9a..0708c1d178 100644 --- a/engines/hopkins/files.cpp +++ b/engines/hopkins/files.cpp @@ -117,6 +117,19 @@ byte *FileManager::CHARGE_FICHIER(const Common::String &file) { return data; } +void FileManager::CHARGE_FICHIER2(const Common::String &file, byte *buf) { + Common::File f; + size_t filesize; + + DMESS1(); + if (!f.open(file)) + error("Error opening file - %s", file.c_str()); + + filesize = f.size(); + FileManager::bload_it(f, buf, filesize); + f.close(); +} + void FileManager::DMESS() { // No implementation in original } @@ -334,8 +347,8 @@ uint32 FileManager::FLONG(const Common::String &filename) { return size; } -void FileManager::CONSTRUIT_LINUX(const Common::String &file) { - warning("TODO: CONSTRUIT_LINUX"); +Common::String FileManager::CONSTRUIT_LINUX(const Common::String &file) { + return file; } } // End of namespace Hopkins |