mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 19:53:56 +00:00
Display application success in playground
This commit is contained in:
@@ -9,10 +9,15 @@
|
||||
#include "snapshot.hpp"
|
||||
#include "analysis.hpp"
|
||||
|
||||
#include <utils/finally.hpp>
|
||||
#include <utils/interupt_handler.hpp>
|
||||
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef OS_EMSCRIPTEN
|
||||
#include <event_handler.hpp>
|
||||
#endif
|
||||
|
||||
namespace
|
||||
{
|
||||
struct analysis_options : analysis_settings
|
||||
@@ -132,6 +137,13 @@ namespace
|
||||
win_emu.stop();
|
||||
}};
|
||||
|
||||
std::optional<NTSTATUS> exit_status{};
|
||||
#ifdef OS_EMSCRIPTEN
|
||||
const auto _1 = utils::finally([&] {
|
||||
debugger::handle_exit(exit_status); //
|
||||
});
|
||||
#endif
|
||||
|
||||
try
|
||||
{
|
||||
if (options.use_gdb)
|
||||
@@ -182,7 +194,7 @@ namespace
|
||||
throw;
|
||||
}
|
||||
|
||||
const auto exit_status = win_emu.process.exit_status;
|
||||
exit_status = win_emu.process.exit_status;
|
||||
if (!exit_status.has_value())
|
||||
{
|
||||
do_post_emulation_work(c);
|
||||
|
||||
Reference in New Issue
Block a user