From ea04d2bbdf3c39103adcaedc96a48f5065e974d9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 6 Jul 2010 20:32:24 +0000 Subject: [PATCH] - fixed: ZDoom aborted on old WADs containing a binary LANGUAGE lump. SVN r2414 (trunk) --- src/sc_man.cpp | 18 ++++++++++++++++++ src/sc_man.h | 2 ++ src/stringtable.cpp | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/src/sc_man.cpp b/src/sc_man.cpp index 298676dc6..a725c2703 100644 --- a/src/sc_man.cpp +++ b/src/sc_man.cpp @@ -331,6 +331,24 @@ void FScanner::RestorePos (const FScanner::SavedPos &pos) Crossed = false; } +//========================================================================== +// +// FScanner :: isText +// +// Checks if this is a text file. +// +//========================================================================== + +bool FScanner::isText() +{ + for(unsigned int i=0;i