7
7
#include "services/set.h"
8
8
#include "nacp.h"
9
9
10
- static u32 g_nacpLanguageTable [15 ] = {
11
- [SetLanguage_JA ] = 2 ,
12
- [SetLanguage_ENUS ] = 0 ,
13
- [SetLanguage_ENGB ] = 1 ,
14
- [SetLanguage_FR ] = 3 ,
15
- [SetLanguage_DE ] = 4 ,
16
- [SetLanguage_ES419 ] = 5 ,
17
- [SetLanguage_ES ] = 6 ,
18
- [SetLanguage_IT ] = 7 ,
19
- [SetLanguage_NL ] = 8 ,
20
- [SetLanguage_FRCA ] = 9 ,
21
- [SetLanguage_PT ] = 10 ,
22
- [SetLanguage_RU ] = 11 ,
23
- [SetLanguage_KO ] = 12 ,
24
- [SetLanguage_ZHTW ] = 13 ,
25
- [SetLanguage_ZHCN ] = 14 ,
10
+ static u32 g_nacpLanguageTable [18 ] = {
11
+ [SetLanguage_JA ] = 2 ,
12
+ [SetLanguage_ENUS ] = 0 ,
13
+ [SetLanguage_ENGB ] = 1 ,
14
+ [SetLanguage_FR ] = 3 ,
15
+ [SetLanguage_DE ] = 4 ,
16
+ [SetLanguage_ES419 ] = 5 ,
17
+ [SetLanguage_ES ] = 6 ,
18
+ [SetLanguage_IT ] = 7 ,
19
+ [SetLanguage_NL ] = 8 ,
20
+ [SetLanguage_FRCA ] = 9 ,
21
+ [SetLanguage_PT ] = 10 ,
22
+ [SetLanguage_RU ] = 11 ,
23
+ [SetLanguage_KO ] = 12 ,
24
+ [SetLanguage_ZHTW ] = 13 ,
25
+ [SetLanguage_ZHHANT ] = 13 ,
26
+ [SetLanguage_ZHCN ] = 14 ,
27
+ [SetLanguage_ZHHANS ] = 14 ,
28
+ [SetLanguage_PTBR ] = 15
26
29
};
27
30
28
31
//Official sw uses nsam for this, but since that's a privileged service, use set-service instead for compatibility with newer system-versions.
@@ -49,7 +52,7 @@ Result nacpGetLanguageEntry(NacpStruct* nacp, NacpLanguageEntry** langentry) {
49
52
if (Language < 0 )
50
53
rc = MAKERESULT (Module_Libnx , LibnxError_BadInput );
51
54
52
- if (R_SUCCEEDED (rc ) && Language >= 15 )
55
+ if (R_SUCCEEDED (rc ) && Language >= 18 )
53
56
Language = SetLanguage_ENUS ;//Use ENUS for unsupported system languages.
54
57
55
58
setExit ();
0 commit comments