mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +03:00
Fixed an issue that could cause the debugger 'source' command to falsely display I/O error
I've discovered a scenario where reading to the end of file seems to trigger the fail bit, in addition to the eof bit. Because of this, I've changed the error message to display when we can't read from the stream, but the eof bit is _not_ set
This commit is contained in:
parent
6e685359dd
commit
d3c5f2939d
@ -893,7 +893,7 @@ void debugger_cpu::process_source_file()
|
||||
|
||||
if (m_source_file && !m_source_file->good())
|
||||
{
|
||||
if (m_source_file->fail())
|
||||
if (!m_source_file->eof())
|
||||
m_machine.debugger().console().printf("I/O error, script processing terminated\n");
|
||||
m_source_file.reset();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user