NCM services: Difference between revisions
8.0.0 |
Namez |
||
Line 25: | Line 25: | ||
{| class="wikitable" border="1" | {| class="wikitable" border="1" | ||
|- | |- | ||
! Cmd || Name | ! Cmd || Name || Notes | ||
|- | |- | ||
| 0 || [[#ResolveProgramPath]] | | 0 || [[#ResolveProgramPath]] || | ||
|- | |- | ||
| 1 || [[#RedirectProgramPath]] | | 1 || [[#RedirectProgramPath]] || | ||
|- | |- | ||
| 2 || [[#ResolveApplicationControlPath]] | | 2 || [[#ResolveApplicationControlPath]] || | ||
|- | |- | ||
| 3 || [[#ResolveApplicationHtmlDocumentPath]] | | 3 || [[#ResolveApplicationHtmlDocumentPath]] || | ||
|- | |- | ||
| 4 || [[#ResolveDataPath]] | | 4 || [[#ResolveDataPath]] || | ||
|- | |- | ||
| 5 || [[#RedirectApplicationControlPath]] | | 5 || [[#RedirectApplicationControlPath]] || | ||
|- | |- | ||
| 6 || [[#RedirectApplicationHtmlDocumentPath]] | | 6 || [[#RedirectApplicationHtmlDocumentPath]] || | ||
|- | |- | ||
| 7 || [[#ResolveApplicationLegalInformationPath]] | | 7 || [[#ResolveApplicationLegalInformationPath]] || | ||
|- | |- | ||
| 8 || [[#RedirectApplicationLegalInformationPath]] | | 8 || [[#RedirectApplicationLegalInformationPath]] || | ||
|- | |- | ||
| 9 || [[#Refresh]] | | 9 || [[#Refresh]] || | ||
|- | |- | ||
| 10 || [5.0.0+] [[# | | 10 || [5.0.0+] [[#RedirectApplicationProgramPath]] || | ||
|- | |- | ||
| 11 || [5.0.0+] [[# | | 11 || [5.0.0+] [[#ClearApplicationRedirection]] || | ||
|- | |- | ||
| 12 || [5.0.0+] [[# | | 12 || [5.0.0+] [[#EraseProgramRedirection]] || | ||
|- | |- | ||
| 13 || [5.0.0+] [[# | | 13 || [5.0.0+] [[#EraseApplicationControlRedirection]] || | ||
|- | |- | ||
| 14 || [5.0.0+] [[# | | 14 || [5.0.0+] [[#EraseApplicationHtmlDocumentRedirection]] || | ||
|- | |- | ||
| 15 || [5.0.0+] [[# | | 15 || [5.0.0+] [[#EraseApplicationLegalInformationRedirection]] || | ||
|- | |- | ||
| 16 || [7.0.0+] [[#ResolveProgramPathForDebug]] | | 16 || [7.0.0+] [[#ResolveProgramPathForDebug]] || Unofficial name | ||
|- | |- | ||
| 17 || [7.0.0+] [[#RedirectProgramPathForDebug]] | | 17 || [7.0.0+] [[#RedirectProgramPathForDebug]] || Unofficial name | ||
|- | |- | ||
| 18 || [7.0.0+] [[# | | 18 || [7.0.0+] [[#RedirectApplicationProgramPathForDebug]] || Unofficial name | ||
|- | |- | ||
| 19 || [7.0.0+] [[# | | 19 || [7.0.0+] [[#EraseProgramRedirectionForDebug]] || Unofficial name | ||
|} | |} | ||
Line 112: | Line 112: | ||
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. | ||
==== | ==== RedirectApplicationProgramPath ==== | ||
Same as [[#RedirectProgramPath|RedirectProgramPath]], but inserts a new [[#Location_List_Entry|entry]] with '''flag''' set to 1. | Same as [[#RedirectProgramPath|RedirectProgramPath]], but inserts a new [[#Location_List_Entry|entry]] with '''flag''' set to 1. | ||
==== | ==== ClearApplicationRedirection ==== | ||
Takes no input. Frees all linked-lists' entries that have '''flag''' set to 1. | Takes no input. Frees all linked-lists' entries that have '''flag''' set to 1. | ||
==== | ==== EraseProgramRedirection ==== | ||
Takes an u64 '''TitleID'''. Used for [[NCA_Content_FS#NCA-type1|NCA-type1]]. | Takes an u64 '''TitleID'''. Used for [[NCA_Content_FS#NCA-type1|NCA-type1]]. | ||
Removes the [[#Location_List_Entry|entry]] that matches the input TitleID. | Removes the [[#Location_List_Entry|entry]] that matches the input TitleID. | ||
==== | ==== EraseApplicationControlRedirection ==== | ||
Takes an u64 '''TitleID'''. Used for [[NCA_Content_FS#NCA-type3|NCA-type3]]. | Takes an u64 '''TitleID'''. Used for [[NCA_Content_FS#NCA-type3|NCA-type3]]. | ||
Removes the [[#Location_List_Entry|entry]] that matches the input TitleID. | Removes the [[#Location_List_Entry|entry]] that matches the input TitleID. | ||
==== | ==== EraseApplicationHtmlDocumentRedirection ==== | ||
Takes an u64 '''TitleID'''. Used for [[NCA_Content_FS#NCA-type4|NCA-type4]]. | Takes an u64 '''TitleID'''. Used for [[NCA_Content_FS#NCA-type4|NCA-type4]]. | ||
Removes the [[#Location_List_Entry|entry]] that matches the input TitleID. | Removes the [[#Location_List_Entry|entry]] that matches the input TitleID. | ||
==== | ==== EraseApplicationLegalInformationRedirection ==== | ||
Takes an u64 '''TitleID'''. Used for [[NCA_Content_FS#NCA-type5|NCA-type5]]. | Takes an u64 '''TitleID'''. Used for [[NCA_Content_FS#NCA-type5|NCA-type5]]. | ||
Line 148: | Line 148: | ||
[[NS_Services|NS]] uses this command if [[System_Settings#ns.application|ns.application!redirected_rom_storage_id_for_debug]] is different than 0x00. | [[NS_Services|NS]] uses this command if [[System_Settings#ns.application|ns.application!redirected_rom_storage_id_for_debug]] is different than 0x00. | ||
==== | ==== RedirectApplicationProgramPathForDebug ==== | ||
Same as [[# | Same as [[#RedirectApplicationProgramPath |RedirectApplicationProgramPath ]], but uses a redirection shim on top of the real program path. | ||
[[NS_Services|NS]] uses this command if [[System_Settings#ns.application|ns.application!redirected_rom_storage_id_for_debug]] is different than 0x00. | [[NS_Services|NS]] uses this command if [[System_Settings#ns.application|ns.application!redirected_rom_storage_id_for_debug]] is different than 0x00. | ||
==== | ==== EraseProgramRedirectionForDebug ==== | ||
Same as [[# | Same as [[#EraseProgramRedirection |EraseProgramRedirection ]], but uses a redirection shim on top of the real program path. | ||
[[NS_Services|NS]] uses this command if [[System_Settings#ns.application|ns.application!redirected_rom_storage_id_for_debug]] is different than 0x00. | [[NS_Services|NS]] uses this command if [[System_Settings#ns.application|ns.application!redirected_rom_storage_id_for_debug]] is different than 0x00. |