PCSX2: Avoid SYSTEM.CNF error message in PSX mode (#2286)

Avoid error on non-empty last line of file.
This commit is contained in:
FlatOutPS2 2018-02-03 16:08:49 +01:00 committed by Robert Neumann
parent 081676bcd8
commit 8600ada735
1 changed files with 2 additions and 2 deletions

View File

@ -323,8 +323,8 @@ int GetPS2ElfName( wxString& name )
const ParsedAssignmentString parts( original );
if( parts.lvalue.IsEmpty() && parts.rvalue.IsEmpty() ) continue;
if( parts.rvalue.IsEmpty() )
{
if( parts.rvalue.IsEmpty() && file.getLength() != file.getSeekPos() )
{ // Some games have a character on the last line of the file, don't print the error in those cases.
Console.Warning( "(SYSTEM.CNF) Unusual or malformed entry in SYSTEM.CNF ignored:" );
Console.Indent().WriteLn( original );
continue;