- fixed: ZDoom aborted on old WADs containing a binary LANGUAGE lump.
SVN r2414 (trunk)
This commit is contained in:
parent
ccd4dc3189
commit
ea04d2bbdf
3 changed files with 30 additions and 0 deletions
|
|
@ -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<ScriptBuffer.Len();i++)
|
||||
{
|
||||
int c = ScriptBuffer[i];
|
||||
if (c < ' ' && c != '\n' && c != '\r' && c != '\t') return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// FScanner :: SetCMode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue