aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/gfx/animationresource.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2010-09-25 19:48:26 +0000
committerEugene Sandulenko2010-10-13 00:02:51 +0000
commit8582c1ad5770b6385381f524a4610934d115cd88 (patch)
tree3a0c29c16f23c5c8992f5d29b36dbbda53a6fa3c /engines/sword25/gfx/animationresource.cpp
parent736ae4c07aa33589a5f9651643d7af07b5d0a877 (diff)
downloadscummvm-rg350-8582c1ad5770b6385381f524a4610934d115cd88.tar.gz
scummvm-rg350-8582c1ad5770b6385381f524a4610934d115cd88.tar.bz2
scummvm-rg350-8582c1ad5770b6385381f524a4610934d115cd88.zip
SWORD25: Enforse code naming conventions in PackageManager and Sword25Engine
svn-id: r53380
Diffstat (limited to 'engines/sword25/gfx/animationresource.cpp')
-rw-r--r--engines/sword25/gfx/animationresource.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sword25/gfx/animationresource.cpp b/engines/sword25/gfx/animationresource.cpp
index 6a1e3d4f2c..4a6bfc34db 100644
--- a/engines/sword25/gfx/animationresource.cpp
+++ b/engines/sword25/gfx/animationresource.cpp
@@ -73,15 +73,15 @@ AnimationResource::AnimationResource(const Common::String &filename) :
BS_ASSERT(_pPackage);
// Switch to the folder the specified Xml fiile is in
- Common::String oldDirectory = _pPackage->GetCurrentDirectory();
+ Common::String oldDirectory = _pPackage->getCurrentDirectory();
if (getFileName().contains('/')) {
Common::String dir = Common::String(getFileName().c_str(), strrchr(getFileName().c_str(), '/'));
- _pPackage->ChangeDirectory(dir);
+ _pPackage->changeDirectory(dir);
}
// Load the contents of the file
uint fileSize;
- char *xmlData = _pPackage->GetXmlFile(getFileName(), &fileSize);
+ char *xmlData = _pPackage->getXmlFile(getFileName(), &fileSize);
if (!xmlData) {
BS_LOG_ERRORLN("Could not read \"%s\".", getFileName().c_str());
return;
@@ -96,7 +96,7 @@ AnimationResource::AnimationResource(const Common::String &filename) :
free(xmlData);
// Switch back to the previous folder
- _pPackage->ChangeDirectory(oldDirectory);
+ _pPackage->changeDirectory(oldDirectory);
// Give an error message if there weren't any frames specified
if (_frames.empty()) {
@@ -172,7 +172,7 @@ bool AnimationResource::parserCallback_frame(ParserNode *node) {
BS_LOG_ERRORLN("<frame> tag without file attribute occurred in \"%s\".", getFileName().c_str());
return false;
}
- frame.FileName = _pPackage->GetAbsolutePath(fileString);
+ frame.FileName = _pPackage->getAbsolutePath(fileString);
if (frame.FileName.empty()) {
BS_LOG_ERRORLN("Could not create absolute path for file specified in <frame> tag in \"%s\": \"%s\".",
getFileName().c_str(), fileString);