aboutsummaryrefslogtreecommitdiff
path: root/engines/sky
diff options
context:
space:
mode:
authorMax Horn2008-09-30 12:59:29 +0000
committerMax Horn2008-09-30 12:59:29 +0000
commit7443b599c4fed18b110ab4db46ac286f105014fa (patch)
treea9bedb16085eb334a9f2de080c33ff081322be64 /engines/sky
parent6aa12974bd0aaff41e5a39ea032a849e4e0f615b (diff)
downloadscummvm-rg350-7443b599c4fed18b110ab4db46ac286f105014fa.tar.gz
scummvm-rg350-7443b599c4fed18b110ab4db46ac286f105014fa.tar.bz2
scummvm-rg350-7443b599c4fed18b110ab4db46ac286f105014fa.zip
SKY: Fix detector to not (ab)use FSNode::getPath; if you want to open a FSNode, just pass it to File::open
svn-id: r34704
Diffstat (limited to 'engines/sky')
-rw-r--r--engines/sky/sky.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sky/sky.cpp b/engines/sky/sky.cpp
index 5ccdab2ca4..ac6773c80c 100644
--- a/engines/sky/sky.cpp
+++ b/engines/sky/sky.cpp
@@ -161,7 +161,7 @@ GameList SkyMetaEngine::detectGames(const Common::FSList &fslist) const {
if (0 == scumm_stricmp("sky.dsk", fileName)) {
Common::File dataDisk;
- if (dataDisk.open(file->getPath())) {
+ if (dataDisk.open(*file)) {
hasSkyDsk = true;
dataDiskSize = dataDisk.size();
}
@@ -169,7 +169,7 @@ GameList SkyMetaEngine::detectGames(const Common::FSList &fslist) const {
if (0 == scumm_stricmp("sky.dnr", fileName)) {
Common::File dinner;
- if (dinner.open(file->getPath())) {
+ if (dinner.open(*file)) {
hasSkyDnr = true;
dinnerTableEntries = dinner.readUint32LE();
}