Enabled DLP Child authorization

This commit is contained in:
U-DESKTOP-7SFAKTP\Ron 2025-09-13 19:12:38 -07:00 committed by PabloMK7
parent 13a94c6150
commit c92f315a7f
3 changed files with 12 additions and 3 deletions

View file

@ -67,6 +67,9 @@ HackManager hack_manager = {
0x0004013000002C02, // Normal 0x0004013000002C02, // Normal
0x0004013000002C03, // Safe mode 0x0004013000002C03, // Safe mode
0x0004013020002C03, // New 3DS safe mode 0x0004013020002C03, // New 3DS safe mode
// DLP
0x0004013000002802,
}, },
}}, }},

View file

@ -3255,9 +3255,15 @@ void Module::Interface::BeginImportProgramTemporarily(Kernel::HLERequestContext&
// Create our CIAFile handle for the app to write to, and while the app writes Citra will store // Create our CIAFile handle for the app to write to, and while the app writes Citra will store
// contents out to sdmc/nand // contents out to sdmc/nand
const FileSys::Path cia_path = {}; const FileSys::Path cia_path = {};
auto file = std::make_shared<Service::FS::File>( std::shared_ptr<Service::FS::File> file;
am->system.Kernel(), std::make_unique<CIAFile>(am->system, FS::MediaType::NAND), cia_path); {
auto cia_file = std::make_unique<CIAFile>(am->system, FS::MediaType::NAND);
AuthorizeCIAFileDecryption(cia_file.get(), ctx);
file = std::make_shared<Service::FS::File>(
am->system.Kernel(), std::move(cia_file), cia_path);
}
am->cia_installing = true; am->cia_installing = true;
IPC::RequestBuilder rb = rp.MakeBuilder(1, 2); IPC::RequestBuilder rb = rp.MakeBuilder(1, 2);

View file

@ -351,7 +351,7 @@ void NWM_UDS::HandleSecureDataPacket(const Network::WifiPacket& packet) {
if (connection_status.status != NetworkStatus::ConnectedAsHost && if (connection_status.status != NetworkStatus::ConnectedAsHost &&
connection_status.status != NetworkStatus::ConnectedAsClient && connection_status.status != NetworkStatus::ConnectedAsClient &&
connection_status.status != NetworkStatus::ConnectedAsSpectator) { connection_status.status != NetworkStatus::ConnectedAsSpectator) {
LOG_ERROR(Service_NWM, "Ignored SecureDataPacket because connection status is {}", LOG_DEBUG(Service_NWM, "Ignored SecureDataPacket because connection status is {}",
static_cast<u32>(connection_status.status)); static_cast<u32>(connection_status.status));
return; return;
} }