[Scummvm-cvs-logs] SF.net SVN: scummvm:[33356] scummvm/trunk/engines/parallaction/disk_br.cpp

Kirben at users.sourceforge.net Kirben at users.sourceforge.net
Mon Jul 28 08:18:40 CEST 2008


Revision: 33356
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33356&view=rev
Author:   Kirben
Date:     2008-07-28 06:18:39 +0000 (Mon, 28 Jul 2008)

Log Message:
-----------
There is no mask or path directories for part0 of BRA (Amiga), so always check whether they exist.

Modified Paths:
--------------
    scummvm/trunk/engines/parallaction/disk_br.cpp

Modified: scummvm/trunk/engines/parallaction/disk_br.cpp
===================================================================
--- scummvm/trunk/engines/parallaction/disk_br.cpp	2008-07-28 06:06:35 UTC (rev 33355)
+++ scummvm/trunk/engines/parallaction/disk_br.cpp	2008-07-28 06:18:39 UTC (rev 33356)
@@ -558,8 +558,8 @@
 		stream.close();
 	}
 
-	if (mask) {
-		filepath = Common::String(name) + ".msk";
+	if (mask && _mskDir.exists()) {
+		filepath = Common::String(mask) + ".msk";
 		node = _mskDir.getChild(filepath);
 		if (!node.exists()) {
 			errorFileNotFound(_mskDir, filepath);
@@ -569,8 +569,8 @@
 		stream.close();
 	}
 
-	if (path) {
-		filepath = Common::String(name) + ".pth";
+	if (path && _pthDir.exists()) {
+		filepath = Common::String(path) + ".pth";
 		node = _pthDir.getChild(filepath);
 		if (!node.exists()) {
 			errorFileNotFound(_pthDir, filepath);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list