Be able to inject more than once ;)

This commit is contained in:
xor 2022-03-27 04:03:36 +02:00
parent b99663b5fa
commit 03aeab5a1f
2 changed files with 5 additions and 2 deletions

View File

@ -82,9 +82,9 @@ namespace vax {
}
namespace {
bool g_InBootProcess = false;
bool g_InBootProcess = false;
namespace {
void InjectProcess(const svc::Handle debug_h, const u64 program_id, const u64 thread_id) {
AMS_UNUSED(program_id);

View File

@ -4,6 +4,8 @@
using namespace ams;
extern bool g_InBootProcess;
namespace vax::sf {
ams::Result LoaderService::NotifyBootFinished(const ams::sf::ClientProcessId &client_pid) {
@ -11,6 +13,7 @@ namespace vax::sf {
R_TRY(mod::RestoreBootRegionBackup(static_cast<u64>(client_pid.GetValue())));
g_InBootProcess = false;
return ResultSuccess();
}