Skip to content

Commit

Permalink
Orc: always enable "press any key to continue" on debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fabienfl-orc committed Jul 31, 2020
1 parent 68aa227 commit 1fda5cd
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Orc/Orc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,19 @@ int wmain(int argc, const WCHAR* argv[])
std::wcerr << "Press any key to continue..." << std::endl;
_getch();
}
else
{
#ifdef _DEBUG
if (!UtilitiesMain::IsProcessParent(L"cmd.exe", pLog)
&& !UtilitiesMain::IsProcessParent(L"WindowsTerminal.exe", pLog)
&& !UtilitiesMain::IsProcessParent(L"pwsh.exe", pLog)
&& !UtilitiesMain::IsProcessParent(L"VsDebugConsole.exe", pLog))
{
std::wcerr << "Press any key to continue..." << std::endl;
_getch();
}
#endif
}

return hr;
}
Expand Down

0 comments on commit 1fda5cd

Please sign in to comment.