mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-21 20:42:44 +02:00
ns: fix appman getter funcs on 3.0.0-5.0.2
This commit is contained in:
parent
a1af4494bf
commit
6fae441714
@ -463,6 +463,8 @@ Result nsGetApplicationControlData(NsApplicationControlSource source, u64 applic
|
|||||||
if (hosversionAtLeast(5,1,0)) {
|
if (hosversionAtLeast(5,1,0)) {
|
||||||
rc = nsGetReadOnlyApplicationControlDataInterface(&srv);
|
rc = nsGetReadOnlyApplicationControlDataInterface(&srv);
|
||||||
cmd_id = 0;
|
cmd_id = 0;
|
||||||
|
} else if (hosversionAtLeast(3,0,0)) {
|
||||||
|
rc = nsGetApplicationManagerInterface(&srv);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
srv_ptr = &g_nsAppManSrv;
|
srv_ptr = &g_nsAppManSrv;
|
||||||
@ -498,6 +500,8 @@ Result nsGetApplicationDesiredLanguage(NacpStruct *nacp, NacpLanguageEntry **lan
|
|||||||
if (hosversionAtLeast(5,1,0)) {
|
if (hosversionAtLeast(5,1,0)) {
|
||||||
rc = nsGetReadOnlyApplicationControlDataInterface(&srv);
|
rc = nsGetReadOnlyApplicationControlDataInterface(&srv);
|
||||||
cmd_id = 1;
|
cmd_id = 1;
|
||||||
|
} else if (hosversionAtLeast(3,0,0)) {
|
||||||
|
rc = nsGetApplicationManagerInterface(&srv);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
srv_ptr = &g_nsAppManSrv;
|
srv_ptr = &g_nsAppManSrv;
|
||||||
|
Loading…
Reference in New Issue
Block a user