From c04f8d00b15d0ebedce6b27e60e64a48f9259e42 Mon Sep 17 00:00:00 2001 From: Matthew Hoops Date: Fri, 22 Jan 2010 03:43:57 +0000 Subject: 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 --- engines/mohawk/livingbooks.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'engines/mohawk/livingbooks.cpp') 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 -- cgit v1.2.3