diff options
author | Paul Gilbert | 2012-09-16 17:21:24 +1000 |
---|---|---|
committer | Paul Gilbert | 2012-09-16 17:21:24 +1000 |
commit | d2bf3ae78c693e119ac765b1af3578eefecee773 (patch) | |
tree | 39dc37bcfb7e30982e350548de7d1ee4c978dfaa /engines/hopkins/files.cpp | |
parent | e02e950a40a5abbef9f53569d99b66af6dc30345 (diff) | |
download | scummvm-rg350-d2bf3ae78c693e119ac765b1af3578eefecee773.tar.gz scummvm-rg350-d2bf3ae78c693e119ac765b1af3578eefecee773.tar.bz2 scummvm-rg350-d2bf3ae78c693e119ac765b1af3578eefecee773.zip |
HOPKINS: Implementing code for CHARGE_ANIM and dependent 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 951db67483..90b5cf0ae8 100644 --- a/engines/hopkins/files.cpp +++ b/engines/hopkins/files.cpp @@ -307,4 +307,17 @@ bool FileManager::RECHERCHE_CAT(const Common::String &file, int a2) { return result; } +uint32 FileManager::FLONG(const Common::String &filename) { + Common::File f; + uint32 size; + + if (!f.open(filename)) + error("Could not find file %s", filename.c_str()); + + size = f.size(); + f.close(); + + return size; +} + } // End of namespace Hopkins |