[Scummvm-cvs-logs] SF.net SVN: scummvm:[53957] scummvm/trunk/engines/hugo

fingolfin at users.sourceforge.net fingolfin at users.sourceforge.net
Sat Oct 30 23:25:31 CEST 2010


Revision: 53957
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53957&view=rev
Author:   fingolfin
Date:     2010-10-30 21:25:30 +0000 (Sat, 30 Oct 2010)

Log Message:
-----------
HUGO: Comment out all occurrences of FILE *fpb

These are not portable, and (at least in the current code)
do nothing useful either: a file is opened, and closed again,
in write mode. At most this may create / delete the file.
But since the method containing this code is never called...

Modified Paths:
--------------
    scummvm/trunk/engines/hugo/file.cpp
    scummvm/trunk/engines/hugo/file.h

Modified: scummvm/trunk/engines/hugo/file.cpp
===================================================================
--- scummvm/trunk/engines/hugo/file.cpp	2010-10-30 20:48:54 UTC (rev 53956)
+++ scummvm/trunk/engines/hugo/file.cpp	2010-10-30 21:25:30 UTC (rev 53957)
@@ -473,17 +473,19 @@
 void FileManager::openPlaybackFile(bool playbackFl, bool recordFl) {
 	debugC(1, kDebugFile, "openPlaybackFile(%d, %d)", (playbackFl) ? 1 : 0, (recordFl) ? 1 : 0);
 
+/*
 	if (playbackFl) {
 		if (!(fpb = fopen(PBFILE, "r+b")))
 			Utils::Error(FILE_ERR, "%s", PBFILE);
 	} else if (recordFl) {
 		fpb = fopen(PBFILE, "wb");
 	}
+*/
 	pbdata.time = 0;                                // Say no key available
 }
 
 void FileManager::closePlaybackFile() {
-	fclose(fpb);
+//	fclose(fpb);
 }
 
 void FileManager::printBootText() {

Modified: scummvm/trunk/engines/hugo/file.h
===================================================================
--- scummvm/trunk/engines/hugo/file.h	2010-10-30 20:48:54 UTC (rev 53956)
+++ scummvm/trunk/engines/hugo/file.h	2010-10-30 21:25:30 UTC (rev 53957)
@@ -96,7 +96,7 @@
 	uif_hdr_t *getUIFHeader(uif_t id);
 
 	pbdata_t pbdata;
-	FILE *fpb;
+//	FILE *fpb;
 
 //Strangerke : Not used?
 	void     openPlaybackFile(bool playbackFl, bool recordFl);


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