Don't start VM automatically when debugger is included.

This commit is contained in:
Jean-Philip Desjardins 2017-10-04 07:36:20 -04:00
parent b4addb46d5
commit 4032166941

View File

@ -663,7 +663,7 @@ void CMainWindow::LoadELF(const boost::filesystem::path& executablePath)
try
{
os.BootFromFile(executablePath);
#if !defined(_DEBUG) && !defined(DEBUGGER_INCLUDED)
#ifndef DEBUGGER_INCLUDED
m_virtualMachine.Resume();
#endif
m_lastOpenCommand = std::make_shared<CLoadElfOpenCommand>(executablePath);
@ -684,7 +684,7 @@ void CMainWindow::BootCDROM()
try
{
os.BootFromCDROM();
#ifndef _DEBUG
#ifndef DEBUGGER_INCLUDED
m_virtualMachine.Resume();
#endif
m_lastOpenCommand = std::make_shared<CBootCdRomOpenCommand>();