diff options
author | Einar Johan Trøan Sømåen | 2012-07-29 02:30:26 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-29 02:34:44 +0200 |
commit | 9b5cf8f1bafd5aa0dba9194a8f04e58724652891 (patch) | |
tree | 6a205943845259a213532476d4dc9ee49a898cf7 /engines/wintermute/ad/ad_waypoint_group.cpp | |
parent | b214041539559e65b89b3270439970fd7173dcbe (diff) | |
download | scummvm-rg350-9b5cf8f1bafd5aa0dba9194a8f04e58724652891.tar.gz scummvm-rg350-9b5cf8f1bafd5aa0dba9194a8f04e58724652891.tar.bz2 scummvm-rg350-9b5cf8f1bafd5aa0dba9194a8f04e58724652891.zip |
WINTERMUTE: Introduce a Singleton-class for holding registry/filemanager.
Diffstat (limited to 'engines/wintermute/ad/ad_waypoint_group.cpp')
-rw-r--r-- | engines/wintermute/ad/ad_waypoint_group.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/wintermute/ad/ad_waypoint_group.cpp b/engines/wintermute/ad/ad_waypoint_group.cpp index 1188ec2fb1..0f83c2c50b 100644 --- a/engines/wintermute/ad/ad_waypoint_group.cpp +++ b/engines/wintermute/ad/ad_waypoint_group.cpp @@ -66,7 +66,7 @@ void AdWaypointGroup::cleanup() { //////////////////////////////////////////////////////////////////////////
bool AdWaypointGroup::loadFile(const char *filename) {
- byte *buffer = _gameRef->_fileManager->readWholeFile(filename);
+ byte *buffer = BaseFileManager::getEngineInstance()->readWholeFile(filename);
if (buffer == NULL) {
_gameRef->LOG(0, "AdWaypointGroup::LoadFile failed for file '%s'", filename);
return STATUS_FAILED;
@@ -112,7 +112,7 @@ bool AdWaypointGroup::loadBuffer(byte *buffer, bool complete) { byte *params;
int cmd;
- BaseParser parser(_gameRef);
+ BaseParser parser;
if (complete) {
if (parser.getCommand((char **)&buffer, commands, (char **)¶ms) != TOKEN_WAYPOINTS) {
|