mirror of
https://github.com/holub/mame
synced 2025-10-06 17:08:28 +03:00
Merge pull request #2403 from npwoods/fix_source_eof_error
Fixed an issue that could cause the debugger 'source' command to falsely display I/O error
This commit is contained in:
commit
1a06955f3e
@ -893,7 +893,7 @@ void debugger_cpu::process_source_file()
|
|||||||
|
|
||||||
if (m_source_file && !m_source_file->good())
|
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_machine.debugger().console().printf("I/O error, script processing terminated\n");
|
||||||
m_source_file.reset();
|
m_source_file.reset();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user