From 9995c7bd980352be55807db03bf0bf2ed55e1d78 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Sat, 30 Oct 2010 21:25:30 +0000 Subject: 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... svn-id: r53957 --- engines/hugo/file.cpp | 4 +++- engines/hugo/file.h | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/hugo') diff --git a/engines/hugo/file.cpp b/engines/hugo/file.cpp index 691536eff4..ebda0e9035 100644 --- a/engines/hugo/file.cpp +++ b/engines/hugo/file.cpp @@ -473,17 +473,19 @@ void FileManager::initSavedGame() { 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() { diff --git a/engines/hugo/file.h b/engines/hugo/file.h index 5d8c8bd429..881cf3c4d7 100644 --- a/engines/hugo/file.h +++ b/engines/hugo/file.h @@ -96,7 +96,7 @@ private: uif_hdr_t *getUIFHeader(uif_t id); pbdata_t pbdata; - FILE *fpb; +// FILE *fpb; //Strangerke : Not used? void openPlaybackFile(bool playbackFl, bool recordFl); -- cgit v1.2.3