aboutsummaryrefslogtreecommitdiff
path: root/engines/gob
diff options
context:
space:
mode:
authorArnaud Boutonné2009-10-18 17:28:02 +0000
committerArnaud Boutonné2009-10-18 17:28:02 +0000
commitb7c6ae3f742216146b75191dc61bb4e30513adc2 (patch)
treecfaca96c9807cffe6fd420cbd8f7af941160bfaf /engines/gob
parent237b66becad31decb5230389ac91459f19db7545 (diff)
downloadscummvm-rg350-b7c6ae3f742216146b75191dc61bb4e30513adc2.tar.gz
scummvm-rg350-b7c6ae3f742216146b75191dc61bb4e30513adc2.tar.bz2
scummvm-rg350-b7c6ae3f742216146b75191dc61bb4e30513adc2.zip
gob - Cleanup of previous modification
svn-id: r45228
Diffstat (limited to 'engines/gob')
-rw-r--r--engines/gob/videoplayer.cpp10
1 files changed, 3 insertions, 7 deletions
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.