Changed KyraEngine_v1::setupSceneResource to use Resource::exists instead of Common::File::exists.

svn-id: r31575
This commit is contained in:
Johannes Schickel 2008-04-19 14:44:06 +00:00
parent a922069eae
commit ceb46a38cd

View File

@ -1266,17 +1266,17 @@ void KyraEngine_v1::setupSceneResource(int sceneId) {
char file[64];
strcpy(file, _roomFilenameTable[tableId]);
strcat(file, ".VRM");
if (Common::File::exists(file))
if (_res->exists(file))
_res->loadPakFile(file);
strcpy(file, _roomFilenameTable[tableId]);
strcat(file, ".PAK");
if (Common::File::exists(file))
if (_res->exists(file))
_res->loadPakFile(file);
strcpy(file, _roomFilenameTable[tableId]);
strcat(file, ".APK");
if (Common::File::exists(file))
if (_res->exists(file))
_res->loadPakFile(file);
}