mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-07-29 04:08:46 +00:00
Loader: Implement InitializeProcessInfo()
This commit is contained in:
parent
7227817b99
commit
2d6445d2f9
5 changed files with 128 additions and 22 deletions
|
@ -152,19 +152,7 @@ Result ProcessManagerService::populate_program_info_buffer(ProcessManagerService
|
|||
|
||||
/* Parse application type. */
|
||||
if (R_SUCCEEDED(rc)) {
|
||||
u32 *kac = (u32 *)info.acid_kac;
|
||||
u32 num_entries = info.acid->kac_size / sizeof(u32);
|
||||
out->application_type = 0;
|
||||
for (unsigned int i = 0; i < num_entries; i++) {
|
||||
if ((kac[i] & 0x3FFF) == 0x1FFF) {
|
||||
u16 app_type = (kac[i] >> 14) & 7;
|
||||
if (app_type == 1) {
|
||||
out->application_type |= 1;
|
||||
} else if (app_type == 2) {
|
||||
out->application_type |= 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
out->application_type = NpdmUtils::GetApplicationType((u32 *)info.acid_kac, info.acid->kac_size / sizeof(u32));
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue