mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
vi: fix manager/system service init
This commit is contained in:
parent
933cfb543d
commit
463c0f3379
@ -48,12 +48,12 @@ Result viInitialize(ViServiceType service_type)
|
|||||||
struct {
|
struct {
|
||||||
u64 magic;
|
u64 magic;
|
||||||
u64 cmd_id;
|
u64 cmd_id;
|
||||||
u64 inval0;
|
u64 inval;
|
||||||
} raw;
|
} raw;
|
||||||
|
|
||||||
raw.magic = SFCI_MAGIC;
|
raw.magic = SFCI_MAGIC;
|
||||||
raw.cmd_id = g_viServiceType; // ViServiceType matches the cmdid needed to open an IApplicationDisplayService session.
|
raw.cmd_id = g_viServiceType; // ViServiceType matches the cmdid needed to open an IApplicationDisplayService session.
|
||||||
raw.inval0 = 0;
|
raw.inval = (g_viServiceType == ViServiceType_Manager || g_viServiceType == ViServiceType_System) ? 1 : 0;
|
||||||
|
|
||||||
rc = _viGetSession(&root_srv, &g_viIApplicationDisplayService, &raw, sizeof(raw));
|
rc = _viGetSession(&root_srv, &g_viIApplicationDisplayService, &raw, sizeof(raw));
|
||||||
serviceClose(&root_srv);
|
serviceClose(&root_srv);
|
||||||
|
Loading…
Reference in New Issue
Block a user