From b7c6ae3f742216146b75191dc61bb4e30513adc2 Mon Sep 17 00:00:00 2001 From: Arnaud Boutonné Date: Sun, 18 Oct 2009 17:28:02 +0000 Subject: gob - Cleanup of previous modification svn-id: r45228 --- engines/gob/videoplayer.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'engines/gob') diff --git a/engines/gob/videoplayer.cpp b/engines/gob/videoplayer.cpp index b707612c7b..fe034304e1 100644 --- a/engines/gob/videoplayer.cpp +++ b/engines/gob/videoplayer.cpp @@ -167,15 +167,11 @@ VideoPlayer::~VideoPlayer() { bool VideoPlayer::findFile(char *fileName, Type &which) { char *extStart = strrchr(fileName, '.'); - // There's no empty extension - if (extStart == (fileName + strlen(fileName) - 1)) { + // There's no empty extension, Or the filename with its current extension is not found + if ((extStart == (fileName + strlen(fileName) - 1)) || (!_vm->_dataIO->existData(fileName))) { *extStart = 0; extStart = 0; - } else - if (!_vm->_dataIO->existData(fileName)) { - *extStart = 0; - extStart = 0; - } + } if (extStart) { // The requested file already has an extension. Verifying. -- cgit v1.2.3