Stratosphere: Implement ldr:pm->GetProgramInfo()

This commit is contained in:
Michael Scire 2018-04-20 23:58:42 -06:00
parent 0fb107fb86
commit b6ba7b94b9
8 changed files with 321 additions and 12 deletions

View file

@ -21,6 +21,16 @@ Result LaunchQueue::add(u64 tid, const char *args, u64 arg_size) {
return 0x0;
}
Result LaunchQueue::add_copy(u64 tid_base, u64 tid) {
unsigned int idx = get_index(tid_base);
if (idx == LAUNCH_QUEUE_FULL) {
return 0x0;
}
return add(tid, g_launch_queue[idx].args, g_launch_queue[idx].arg_size);
}
Result LaunchQueue::add_item(const LaunchItem *item) {
if(item->arg_size > LAUNCH_QUEUE_ARG_SIZE_MAX) {
return 0x209;