Line 4: |
Line 4: |
| {| class="wikitable" border="1" | | {| class="wikitable" border="1" |
| |- | | |- |
− | ! Cmd || Name || Notes | + | ! Cmd || Name |
| |- | | |- |
− | | 0 || GetLanguageCode || No input, returns an output [[#LanguageCode]]. This is the current system language. | + | | 0 || [[#GetLanguageCode]] |
| |- | | |- |
− | | 1 || GetAvailableLanguageCodes || Takes a type-0xA buffer containing the [[#LanguageCode]] output array, returns an output s32. | + | | 1 || [[#GetAvailableLanguageCodes]] |
| |- | | |- |
− | | 2 || [4.0.0+] MakeLanguageCode || Takes an input [[#Language]], returns an output [[#LanguageCode]]. | + | | 2 || [4.0.0+] [[#MakeLanguageCode]] |
| |- | | |- |
− | | 3 || GetAvailableLanguageCodeCount || No input, returns an output s32. | + | | 3 || [[#GetAvailableLanguageCodeCount]] |
| |- | | |- |
− | | 4 || GetRegionCode || No input, returns a [[#RegionCode_2|RegionCode]]. | + | | 4 || [[#GetRegionCode]] |
| |- | | |- |
− | | 5 || [4.0.0+] GetAvailableLanguageCodes2 || Takes a type-0x6 buffer containing the [[#LanguageCode]] output array, returns an output s32. | + | | 5 || [4.0.0+] [[#GetAvailableLanguageCodes2]] |
| |- | | |- |
− | | 6 || [4.0.0+] GetAvailableLanguageCodeCount2 || No input, returns an output s32. | + | | 6 || [4.0.0+] [[#GetAvailableLanguageCodeCount2]] |
| |- | | |- |
− | | 7 || [4.0.0+] [[#GetKeyCodeMap]] || | + | | 7 || [4.0.0+] [[#GetKeyCodeMap]] |
| |- | | |- |
− | | 8 || [5.0.0+] GetQuestFlag || Identical to "set:sys" [[#set:sys|GetQuestFlag]]. | + | | 8 || [5.0.0+] [[#GetQuestFlag]] |
| |- | | |- |
− | | 9 || [6.0.0+] GetKeyCodeMap2 || | + | | 9 || [6.0.0+] [[#GetKeyCodeMap2]] |
| |- | | |- |
− | | 10 || [9.0.0+] [[#GetFirmwareVersionForDebug]] || | + | | 10 || [9.0.0+] [[#GetFirmwareVersionForDebug]] |
| |- | | |- |
− | | 11 || [10.1.0+] [[#GetDeviceNickName]] || | + | | 11 || [10.1.0+] [[#GetDeviceNickName]] |
| |} | | |} |
| | | |
Line 36: |
Line 36: |
| * During one-time init, GetAvailableLanguageCodes is used to initialize the LanguageCodes array cache, with max_entries=0xF (buffer size in u64s). [4.0.0+] GetAvailableLanguageCodes2 is now used with max_entries 0x40. | | * During one-time init, GetAvailableLanguageCodes is used to initialize the LanguageCodes array cache, with max_entries=0xF (buffer size in u64s). [4.0.0+] GetAvailableLanguageCodes2 is now used with max_entries 0x40. |
| * [4.0.0+] When the input [[#Language]] is larger than the cached total_entries from the above command output, or [[#Language]] is negative, command MakeLanguageCode is used instead of the array. | | * [4.0.0+] When the input [[#Language]] is larger than the cached total_entries from the above command output, or [[#Language]] is negative, command MakeLanguageCode is used instead of the array. |
| + | |
| + | == GetLanguageCode == |
| + | No input, returns an output [[#LanguageCode]]. This is the current system language. |
| + | |
| + | == GetAvailableLanguageCodes == |
| + | Takes a type-0xA buffer containing the [[#LanguageCode]] output array, returns an output s32. |
| + | |
| + | == MakeLanguageCode == |
| + | Takes an input [[#Language]], returns an output [[#LanguageCode]]. |
| + | |
| + | == GetAvailableLanguageCodeCount == |
| + | No input, returns an output s32. |
| + | |
| + | == GetRegionCode == |
| + | No input, returns a [[#RegionCode_2|RegionCode]]. |
| + | |
| + | == GetAvailableLanguageCodes2 == |
| + | Takes a type-0x6 buffer containing the [[#LanguageCode]] output array, returns an output s32. |
| + | |
| + | == GetAvailableLanguageCodeCount2 == |
| + | No input, returns an output s32. |
| | | |
| == GetKeyCodeMap == | | == GetKeyCodeMap == |