diff options
author | Matthew Hoops | 2010-01-22 03:43:57 +0000 |
---|---|---|
committer | Matthew Hoops | 2010-01-22 03:43:57 +0000 |
commit | c04f8d00b15d0ebedce6b27e60e64a48f9259e42 (patch) | |
tree | c1c135e9a34e23184aba7ffa8979dd8ed663c495 /engines/mohawk/livingbooks.cpp | |
parent | 716a2bf2423dac64dff5080fc59d75a9ae0e3723 (diff) | |
download | scummvm-rg350-c04f8d00b15d0ebedce6b27e60e64a48f9259e42.tar.gz scummvm-rg350-c04f8d00b15d0ebedce6b27e60e64a48f9259e42.tar.bz2 scummvm-rg350-c04f8d00b15d0ebedce6b27e60e64a48f9259e42.zip |
Rename MohawkFile to MohawkArchive and OldMohawkFile to LivingBooksArchive_v1 (the latter originally having an ambiguous meaning) and move them to resource.* Also, renaming the Living Books game types to remove the ambiguous old/new.
svn-id: r47429
Diffstat (limited to 'engines/mohawk/livingbooks.cpp')
-rw-r--r-- | engines/mohawk/livingbooks.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/engines/mohawk/livingbooks.cpp b/engines/mohawk/livingbooks.cpp index a24372826f..ccb9de1fa1 100644 --- a/engines/mohawk/livingbooks.cpp +++ b/engines/mohawk/livingbooks.cpp @@ -24,7 +24,7 @@ */ #include "mohawk/livingbooks.h" -#include "mohawk/file.h" +#include "mohawk/resource.h" #include "common/events.h" @@ -148,9 +148,9 @@ void MohawkEngine_LivingBooks::loadIntro() { filename = getFileNameFromConfig("Intro", "Page1.r"); if (!filename.empty() && Common::File::exists(filename)) { - MohawkFile *introFile = createMohawkFile(); - introFile->open(filename); - _mhk.push_back(introFile); + MohawkArchive *introArchive = createMohawkArchive(); + introArchive->open(filename); + _mhk.push_back(introArchive); } filename = getFileNameFromConfig("Intro", "Page2"); @@ -159,9 +159,9 @@ void MohawkEngine_LivingBooks::loadIntro() { filename = getFileNameFromConfig("Intro", "Page2.r"); if (!filename.empty() && Common::File::exists(filename)) { - MohawkFile *coverFile = createMohawkFile(); - coverFile->open(filename); - _mhk.push_back(coverFile); + MohawkArchive *coverArchive = createMohawkArchive(); + coverArchive->open(filename); + _mhk.push_back(coverArchive); } } @@ -323,8 +323,8 @@ Common::String MohawkEngine_LivingBooks::convertWinFileName(Common::String strin return filename; } -MohawkFile *MohawkEngine_LivingBooks::createMohawkFile() const { - return (getGameType() == GType_NEWLIVINGBOOKS) ? new MohawkFile() : new OldMohawkFile(); +MohawkArchive *MohawkEngine_LivingBooks::createMohawkArchive() const { + return (getGameType() == GType_LIVINGBOOKSV1) ? new LivingBooksArchive_v1() : new MohawkArchive(); } } // End of namespace Mohawk |