diff options
author | Nicola Mettifogo | 2007-02-25 20:35:47 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-02-25 20:35:47 +0000 |
commit | cacff9a9f26eff5111b1f5eef3491ac406f1245d (patch) | |
tree | 389ab1f28c51810e5634b98239319fa097d09a47 /engines/parallaction/animation.cpp | |
parent | 0c77177ef1d8ffc27710c5b2562069a4e3f6ed02 (diff) | |
download | scummvm-rg350-cacff9a9f26eff5111b1f5eef3491ac406f1245d.tar.gz scummvm-rg350-cacff9a9f26eff5111b1f5eef3491ac406f1245d.tar.bz2 scummvm-rg350-cacff9a9f26eff5111b1f5eef3491ac406f1245d.zip |
wrapped archive routines into a new class named Archive. File-level static variables have been made members of the new class.
svn-id: r25866
Diffstat (limited to 'engines/parallaction/animation.cpp')
-rw-r--r-- | engines/parallaction/animation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/parallaction/animation.cpp b/engines/parallaction/animation.cpp index 59428e9026..2bfbba16e2 100644 --- a/engines/parallaction/animation.cpp +++ b/engines/parallaction/animation.cpp @@ -256,16 +256,16 @@ void Parallaction::loadProgram(Animation *a, char *filename) { sprintf(vC8, "%s.script", filename); - if (!openArchivedFile(vC8)) + if (!_archive.openArchivedFile(vC8)) errorFileNotFound(vC8); - uint32 size = getArchivedFileLength(vC8); + uint32 size = _archive.getArchivedFileLength(vC8); char* src = (char*)memAlloc(size+1); - readArchivedFile(src, size); + _archive.readArchivedFile(src, size); src[size] = '\0'; - closeArchivedFile(); + _archive.closeArchivedFile(); _numLocals = 0; |