NCM services: Difference between revisions
No edit summary |
lr |
||
Line 9: | Line 9: | ||
! Cmd || Name || Arguments || Notes | ! Cmd || Name || Arguments || Notes | ||
|- | |- | ||
| 0 || | | 0 || OpenLocationResolver || [[Filesystem_services#StorageId|StorageID]] || | ||
|- | |- | ||
| 1 || | | 1 || OpenRegisteredLocationResolver || None || | ||
|- | |- | ||
| 2 || | | 2 || RefreshLocationResolver || [[Filesystem_services#StorageId|StorageID]] || | ||
|- | |- | ||
| 3 || [2.0.0+] | | 3 || [2.0.0+] OpenAddOnContentLocationResolver || None || | ||
|} | |} | ||
Line 27: | Line 27: | ||
! Cmd || Name | ! Cmd || Name | ||
|- | |- | ||
| 0 || [[# | | 0 || [[#ResolveProgramPath]] | ||
|- | |- | ||
| 1 || [[# | | 1 || [[#RedirectProgramPath]] | ||
|- | |- | ||
| 2 || [[# | | 2 || [[#ResolveApplicationControlPath]] | ||
|- | |- | ||
| 3 || [[# | | 3 || [[#ResolveApplicationHtmlDocumentPath]] | ||
|- | |- | ||
| 4 || [[# | | 4 || [[#ResolveDataPath]] | ||
|- | |- | ||
| 5 || [[# | | 5 || [[#RedirectApplicationControlPath]] | ||
|- | |- | ||
| 6 || [[# | | 6 || [[#RedirectApplicationHtmlDocumentPath]] | ||
|- | |- | ||
| 7 || [[# | | 7 || [[#ResolveApplicationLegalInformationPath]] | ||
|- | |- | ||
| 8 || [[# | | 8 || [[#RedirectApplicationLegalInformationPath]] | ||
|- | |- | ||
| 9 || [[# | | 9 || [[#Refresh]] | ||
|- | |- | ||
| 10 || [5.0.0+] [[#SetProgramNcaPath2]] | | 10 || [5.0.0+] [[#SetProgramNcaPath2]] | ||
Line 66: | Line 66: | ||
The Set* commands always return 0 and add a new entry to the list. If a matching entry is found, it's removed first. | The Set* commands always return 0 and add a new entry to the list. If a matching entry is found, it's removed first. | ||
==== | ==== ResolveProgramPath ==== | ||
Takes an u64 '''TitleID''' and a C descriptor. Used for [[NCA_Content_FS#NCA-type1|NCA-type1]]. | Takes an u64 '''TitleID''' and a C descriptor. Used for [[NCA_Content_FS#NCA-type1|NCA-type1]]. | ||
==== | ==== RedirectProgramPath ==== | ||
Takes an u64 '''TitleID''' and a X descriptor with a [[Filesystem_services#ContentPath|ContentPath]]. Used for [[NCA_Content_FS#NCA-type1|NCA-type1]]. | Takes an u64 '''TitleID''' and a X descriptor with a [[Filesystem_services#ContentPath|ContentPath]]. Used for [[NCA_Content_FS#NCA-type1|NCA-type1]]. | ||
Inserts a new [[#Location_List_Entry|entry]] with '''flag''' set to 0. | Inserts a new [[#Location_List_Entry|entry]] with '''flag''' set to 0. | ||
==== | ==== ResolveApplicationControlPath ==== | ||
Takes an u64 '''TitleID''' and a C descriptor. Used for [[NCA_Content_FS#NCA-type3|NCA-type3]]. | Takes an u64 '''TitleID''' and a C descriptor. Used for [[NCA_Content_FS#NCA-type3|NCA-type3]]. | ||
==== | ==== ResolveApplicationHtmlDocumentPath==== | ||
Takes an u64 '''TitleID''' and a C descriptor. Used for [[NCA_Content_FS#NCA-type4|NCA-type4]]. | Takes an u64 '''TitleID''' and a C descriptor. Used for [[NCA_Content_FS#NCA-type4|NCA-type4]]. | ||
==== | ==== ResolveDataPath ==== | ||
Takes an u64 '''TitleID''' and a C descriptor. Used for [[NCA_Content_FS#NCA-type3|NCA-type3]]. | Takes an u64 '''TitleID''' and a C descriptor. Used for [[NCA_Content_FS#NCA-type3|NCA-type3]]. | ||
==== | ==== RedirectApplicationControlPath ==== | ||
Takes an u64 '''TitleID''' and a X descriptor with a [[Filesystem_services#ContentPath|ContentPath]]. Used for [[NCA_Content_FS#NCA-type3|NCA-type3]]. | Takes an u64 '''TitleID''' and a X descriptor with a [[Filesystem_services#ContentPath|ContentPath]]. Used for [[NCA_Content_FS#NCA-type3|NCA-type3]]. | ||
Inserts a new [[#Location_List_Entry|entry]] with '''flag''' set to 1. | Inserts a new [[#Location_List_Entry|entry]] with '''flag''' set to 1. | ||
==== | ==== RedirectApplicationHtmlDocumentPath ==== | ||
Takes an u64 '''TitleID''' and a X descriptor with a [[Filesystem_services#ContentPath|ContentPath]]. Used for [[NCA_Content_FS#NCA-type4|NCA-type4]]. | Takes an u64 '''TitleID''' and a X descriptor with a [[Filesystem_services#ContentPath|ContentPath]]. Used for [[NCA_Content_FS#NCA-type4|NCA-type4]]. | ||
Inserts a new [[#Location_List_Entry|entry]] with '''flag''' set to 1. | Inserts a new [[#Location_List_Entry|entry]] with '''flag''' set to 1. | ||
==== | ==== ResolveApplicationLegalInformationPath ==== | ||
Takes an u64 '''TitleID''' and a C descriptor. Used for [[NCA_Content_FS#NCA-type5|NCA-type5]]. | Takes an u64 '''TitleID''' and a C descriptor. Used for [[NCA_Content_FS#NCA-type5|NCA-type5]]. | ||
==== | ==== RedirectApplicationLegalInformationPath ==== | ||
Takes an u64 '''TitleID''' and a X descriptor with a [[Filesystem_services#ContentPath|ContentPath]]. Used for [[NCA_Content_FS#NCA-type5|NCA-type5]]. | Takes an u64 '''TitleID''' and a X descriptor with a [[Filesystem_services#ContentPath|ContentPath]]. Used for [[NCA_Content_FS#NCA-type5|NCA-type5]]. | ||
Inserts a new [[#Location_List_Entry|entry]] with '''flag''' set to 1. | Inserts a new [[#Location_List_Entry|entry]] with '''flag''' set to 1. | ||
==== | ==== Refresh ==== | ||
Takes no input. Frees all linked-lists' entries that have '''flag''' set to 0. | Takes no input. Frees all linked-lists' entries that have '''flag''' set to 0. | ||
Line 139: | Line 139: | ||
! Cmd || Name || Arguments || Notes | ! Cmd || Name || Arguments || Notes | ||
|- | |- | ||
| 0 || | | 0 || ResolveProgramPath || u64 TitleID + C descriptor || Used for [[NCA_Content_FS#NCA-type1|NCA-type1]]. | ||
|- | |- | ||
| 1 || | | 1 || RegisterProgramPath || u64 TitleID + X descriptor [[Filesystem_services#ContentPath|ContentPath]] || Sets the Type 0 fallback TID and path to the provided arguments. | ||
|- | |- | ||
| 2 || | | 2 || UnregisterProgramPath || u64 TitleID || If the Type 0 fallback TID is == argument TID, unregisters the fallback path. Otherwise, noop. | ||
|- | |- | ||
| 3 || | | 3 || RedirectProgramPath || u64 TitleID + X descriptor [[Filesystem_services#ContentPath|ContentPath]] || | ||
|- | |- | ||
| 4 || [2.0.0+] | | 4 || [2.0.0+] ResolveHtmlDocumentPath || u64 TitleID + C descriptor || | ||
|- | |- | ||
| 5 || [2.0.0+] | | 5 || [2.0.0+] RegisterHtmlDocumentPath || u64 TitleID + X descriptor [[Filesystem_services#ContentPath|ContentPath]] || Sets the Type 1 fallback TID and path to the provided arguments. | ||
|- | |- | ||
| 6 || [2.0.0+] | | 6 || [2.0.0+] UnregisterHtmlDocumentPath || u64 TitleID || If the Type 1 fallback TID is == argument TID, unregisters the fallback path. Otherwise, noop. | ||
|- | |- | ||
| 7 || [2.0.0+] | | 7 || [2.0.0+] RedirectHtmlDocumentPath || u64 TitleID + X descriptor [[Filesystem_services#ContentPath|ContentPath]] || | ||
|} | |} | ||
Line 163: | Line 163: | ||
! Cmd || Name || Arguments || Notes | ! Cmd || Name || Arguments || Notes | ||
|- | |- | ||
| 0 || | | 0 || ResolveAddOnContentPath || u64 TitleID + C descriptor || | ||
|- | |- | ||
| 1 || | | 1 || RegisterAddOnContentStorage || [[Filesystem_services#StorageId|StorageID]] + u64 TitleID || | ||
|- | |- | ||
| 2 || | | 2 || UnregisterAllAddOnContentPath || None || Clears all registered titles here. | ||
|} | |} | ||